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
Sourcepub const unsafe fn from_raw(raw: VkPipelineMultisampleStateCreateInfo) -> Self
pub const unsafe fn from_raw(raw: VkPipelineMultisampleStateCreateInfo) -> Self
§Safety
raw must have a valid brvk::VkPipelineMultisampleStateCreateInfo struct.
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>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more