Struct gfx_hal::pso::Multisampling
source · [−]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
sourceimpl Clone for Multisampling
impl Clone for Multisampling
sourcefn clone(&self) -> Multisampling
fn clone(&self) -> Multisampling
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Multisampling
impl Debug for Multisampling
sourceimpl PartialEq<Multisampling> for Multisampling
impl PartialEq<Multisampling> for Multisampling
sourcefn eq(&self, other: &Multisampling) -> bool
fn eq(&self, other: &Multisampling) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Multisampling) -> bool
fn ne(&self, other: &Multisampling) -> bool
This method tests for !=
.
impl StructuralPartialEq for Multisampling
Auto Trait Implementations
impl RefUnwindSafe for Multisampling
impl Send for Multisampling
impl Sync for Multisampling
impl Unpin for Multisampling
impl UnwindSafe for Multisampling
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more