pub struct Multisampling {
pub rasterization_samples: NumSamples,
pub sample_shading: Option<f32>,
pub sample_mask: SampleMask,
pub alpha_coverage: bool,
pub alpha_to_one: bool,
}
Expand description
Fields§
§rasterization_samples: NumSamples
§sample_shading: Option<f32>
§sample_mask: SampleMask
§alpha_coverage: bool
Toggles alpha-to-coverage multisampling, which can produce nicer edges when many partially-transparent polygons are overlapping. See here for a full description.
alpha_to_one: bool
Trait Implementations§
Source§impl Clone for Multisampling
impl Clone for Multisampling
Source§fn clone(&self) -> Multisampling
fn clone(&self) -> Multisampling
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Multisampling
impl Debug for Multisampling
Source§impl PartialEq for Multisampling
impl PartialEq for Multisampling
impl StructuralPartialEq for Multisampling
Auto Trait Implementations§
impl Freeze for Multisampling
impl RefUnwindSafe for Multisampling
impl Send for Multisampling
impl Sync for Multisampling
impl Unpin for Multisampling
impl UnwindSafe for Multisampling
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more