[−][src]Struct bedrock::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]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for MultisampleState
impl !Send for MultisampleState
impl !Sync for MultisampleState
impl Unpin for MultisampleState
impl UnwindSafe for MultisampleState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,