[][src]Struct bedrock::MultisampleState

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.