Struct wgpu_types::MultisampleState [−][src]
#[repr(C)]pub struct MultisampleState { pub count: u32, pub mask: u64, pub alpha_to_coverage_enabled: bool, }
Expand description
Describes the multi-sampling state of a render pipeline.
Fields
count: u32The number of samples calculated per pixel (for MSAA). For non-multisampled textures,
this should be 1
mask: u64Bitmask that restricts the samples of a pixel modified by this pipeline. All samples
can be enabled using the value !0
alpha_to_coverage_enabled: boolWhen enabled, produces another sample mask per pixel based on the alpha output value, that is ANDed with the sample_mask and the primitive coverage to restrict the set of samples affected by a primitive.
The implicit mask produced for alpha of zero is guaranteed to be zero, and for alpha of one is guaranteed to be all 1-s.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for MultisampleStateimpl Send for MultisampleStateimpl Sync for MultisampleStateimpl Unpin for MultisampleStateimpl UnwindSafe for MultisampleStateBlanket Implementations
Mutably borrows from an owned value. Read more