Struct ash::vk::definitions::PipelineMultisampleStateCreateInfo
source · #[repr(C)]pub struct PipelineMultisampleStateCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: PipelineMultisampleStateCreateFlags,
pub rasterization_samples: SampleCountFlags,
pub sample_shading_enable: Bool32,
pub min_sample_shading: f32,
pub p_sample_mask: *const SampleMask,
pub alpha_to_coverage_enable: Bool32,
pub alpha_to_one_enable: Bool32,
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§flags: PipelineMultisampleStateCreateFlags
§rasterization_samples: SampleCountFlags
§sample_shading_enable: Bool32
§min_sample_shading: f32
§p_sample_mask: *const SampleMask
§alpha_to_coverage_enable: Bool32
§alpha_to_one_enable: Bool32
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> PipelineMultisampleStateCreateInfo<'a>
impl<'a> PipelineMultisampleStateCreateInfo<'a>
pub fn flags(self, flags: PipelineMultisampleStateCreateFlags) -> Self
pub fn rasterization_samples( self, rasterization_samples: SampleCountFlags, ) -> Self
pub fn sample_shading_enable(self, sample_shading_enable: bool) -> Self
pub fn min_sample_shading(self, min_sample_shading: f32) -> Self
sourcepub fn sample_mask(self, sample_mask: &'a [SampleMask]) -> Self
pub fn sample_mask(self, sample_mask: &'a [SampleMask]) -> Self
Sets p_sample_mask
to null
if the slice is empty. The mask will
be treated as if it has all bits set to 1
.
See https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkPipelineMultisampleStateCreateInfo.html#_description for more details.
pub fn alpha_to_coverage_enable(self, alpha_to_coverage_enable: bool) -> Self
pub fn alpha_to_one_enable(self, alpha_to_one_enable: bool) -> Self
sourcepub fn push_next<T: ExtendsPipelineMultisampleStateCreateInfo + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsPipelineMultisampleStateCreateInfo + ?Sized>( self, next: &'a mut T, ) -> Self
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C
, and you call x.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
Trait Implementations§
source§impl<'a> Clone for PipelineMultisampleStateCreateInfo<'a>
impl<'a> Clone for PipelineMultisampleStateCreateInfo<'a>
source§fn clone(&self) -> PipelineMultisampleStateCreateInfo<'a>
fn clone(&self) -> PipelineMultisampleStateCreateInfo<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for PipelineMultisampleStateCreateInfo<'a>
impl<'a> Debug for PipelineMultisampleStateCreateInfo<'a>
source§impl Default for PipelineMultisampleStateCreateInfo<'_>
impl Default for PipelineMultisampleStateCreateInfo<'_>
source§impl<'a> TaggedStructure for PipelineMultisampleStateCreateInfo<'a>
impl<'a> TaggedStructure for PipelineMultisampleStateCreateInfo<'a>
const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_MULTISAMPLE_STATE_CREATE_INFO
impl<'a> Copy for PipelineMultisampleStateCreateInfo<'a>
impl Send for PipelineMultisampleStateCreateInfo<'_>
impl Sync for PipelineMultisampleStateCreateInfo<'_>
Auto Trait Implementations§
impl<'a> Freeze for PipelineMultisampleStateCreateInfo<'a>
impl<'a> RefUnwindSafe for PipelineMultisampleStateCreateInfo<'a>
impl<'a> Unpin for PipelineMultisampleStateCreateInfo<'a>
impl<'a> UnwindSafe for PipelineMultisampleStateCreateInfo<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more