pub struct PipelineMultisampleStateCreateInfo<'d> { /* private fields */ }
Expand description
Structure specifying parameters of a newly created pipeline multisample state
Implementations§
Source§impl<'d> PipelineMultisampleStateCreateInfo<'d>
impl<'d> PipelineMultisampleStateCreateInfo<'d>
pub const fn new() -> Self
pub const unsafe fn from_raw(raw: VkPipelineMultisampleStateCreateInfo) -> Self
pub const fn into_raw(self) -> VkPipelineMultisampleStateCreateInfo
Sourcepub const fn rasterization_samples(self, samples: usize) -> Self
pub const fn rasterization_samples(self, samples: usize) -> Self
Specifies the number of samples per pixel used in rasterization. default=1
Sourcepub fn sample_mask(self, mask: &'d [VkSampleMask]) -> Self
pub fn sample_mask(self, mask: &'d [VkSampleMask]) -> Self
A bitmask of static coverage information that is ANDed with the coverage information generated during rasterization, as described in Sample Mask.
Sourcepub const fn sample_shading(self, min: f32) -> Self
pub const fn sample_shading(self, min: f32) -> Self
Specifies a minimum fraction of sample shading(must be in the range [0, 1]).
Pass a None
to disable Sample Shading.
Sourcepub const fn enable_alpha_to_coverage(self) -> Self
pub const fn enable_alpha_to_coverage(self) -> Self
Controls whether a temporary coverage value is generated based on the alpha component of the fragment’s first color output as specified in the Multisample Coverage section.
Sourcepub const fn replace_alpha_to_one(self) -> Self
pub const fn replace_alpha_to_one(self) -> Self
Controls whether the alpha component of the fragment’s first color output is replaced with one as described in Multisample Coverage.
Trait Implementations§
Source§impl<'d> Clone for PipelineMultisampleStateCreateInfo<'d>
impl<'d> Clone for PipelineMultisampleStateCreateInfo<'d>
Source§fn clone(&self) -> PipelineMultisampleStateCreateInfo<'d>
fn clone(&self) -> PipelineMultisampleStateCreateInfo<'d>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'d> Freeze for PipelineMultisampleStateCreateInfo<'d>
impl<'d> RefUnwindSafe for PipelineMultisampleStateCreateInfo<'d>
impl<'d> !Send for PipelineMultisampleStateCreateInfo<'d>
impl<'d> !Sync for PipelineMultisampleStateCreateInfo<'d>
impl<'d> Unpin for PipelineMultisampleStateCreateInfo<'d>
impl<'d> UnwindSafe for PipelineMultisampleStateCreateInfo<'d>
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