Struct bedrock::MultisampleState
[−]
[src]
pub struct MultisampleState(_);
PipelineStateDesc: Multisample State
Methods
impl MultisampleState
[src]
pub fn new() -> Self
[src]
pub fn rasterization_samples(&mut self, samples: usize) -> &mut Self
[src]
Specifies the number of samples per pixel used in rasterization. default=1
pub fn sample_mask(&mut self, mask: &[VkSampleMask]) -> &mut Self
[src]
A bitmask of static coverage information that is ANDed with the coverage information generated during rasterization, as described in Sample Mask.
pub fn sample_shading(&mut self, min_sample_shading: Option<f32>) -> &mut Self
[src]
Specifies a minimum fraction of sample shading(must be in the range [0, 1]).
Pass a None
to disable Sample Shading.
pub fn enable_alpha_to_coverage(&mut self, w: bool) -> &mut Self
[src]
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.
pub fn replace_alpha_to_one(&mut self, w: bool) -> &mut Self
[src]
Controls whether the alpha component of the fragment's first color output is replaced with one as described in Multisample Coverage.
Trait Implementations
impl Clone for MultisampleState
[src]
fn clone(&self) -> MultisampleState
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more