pub struct FxaaConfig {
pub enabled: bool,
pub edge_threshold: f32,
pub edge_threshold_min: f32,
}Expand description
FXAA shader configuration
Fields§
§enabled: boolEnable/disable FXAA
edge_threshold: f32Edge detection threshold (0.063 - 0.333, default: 0.125) Lower = more edges detected = more AA but potential blur
edge_threshold_min: f32Minimum edge threshold (0.0312 - 0.0833, default: 0.0312) Prevents AA on very low contrast edges
Implementations§
Source§impl FxaaConfig
impl FxaaConfig
Sourcepub fn high_quality() -> Self
pub fn high_quality() -> Self
High quality preset - more aggressive edge detection
Sourcepub fn performance() -> Self
pub fn performance() -> Self
Performance preset - less aggressive, faster
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 · 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 FxaaConfig
impl Debug 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more