pub struct FXAAEffect { /* private fields */ }Expand description
A simple anti-aliasing approach which smooths otherwise jagged edges (for example lines) but also smooths the rest of the image.
Implementations
sourceimpl FXAAEffect
impl FXAAEffect
sourcepub fn new(context: &Context) -> ThreeDResult<Self>
pub fn new(context: &Context) -> ThreeDResult<Self>
Creates a new FXAA effect.
sourcepub fn apply(&self, viewport: Viewport, texture: &Texture2D) -> ThreeDResult<()>
pub fn apply(&self, viewport: Viewport, texture: &Texture2D) -> ThreeDResult<()>
Applies the FXAA effect to the image in the given texture and writes the result to the given viewport of the current render target. Must be called in a render target render function, for example in the callback function of Screen::write.
Auto Trait Implementations
impl !RefUnwindSafe for FXAAEffect
impl !Send for FXAAEffect
impl !Sync for FXAAEffect
impl Unpin for FXAAEffect
impl !UnwindSafe for FXAAEffect
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more