pub struct FxaaConfig {
pub contrast_threshold: f32,
pub relative_threshold: f32,
}Expand description
Fast approximate anti-aliasing configuration.
Fields§
§contrast_threshold: f32Minimum contrast that triggers smoothing.
relative_threshold: f32Relative contrast threshold.
Implementations§
Source§impl FxaaConfig
impl FxaaConfig
Sourcepub fn normalized(self) -> Self
pub fn normalized(self) -> Self
Returns a clamped configuration.
Trait Implementations§
Source§impl Clone for FxaaConfig
impl Clone for FxaaConfig
Source§fn clone(&self) -> FxaaConfig
fn clone(&self) -> FxaaConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FxaaConfig
Source§impl Debug for FxaaConfig
impl Debug for FxaaConfig
Source§impl Default for FxaaConfig
impl Default for FxaaConfig
Source§impl PartialEq for FxaaConfig
impl PartialEq for FxaaConfig
Source§fn eq(&self, other: &FxaaConfig) -> bool
fn eq(&self, other: &FxaaConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FxaaConfig
Auto Trait Implementations§
impl Freeze for FxaaConfig
impl RefUnwindSafe for FxaaConfig
impl Send for FxaaConfig
impl Sync for FxaaConfig
impl Unpin for FxaaConfig
impl UnsafeUnpin for FxaaConfig
impl UnwindSafe for FxaaConfig
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