Struct smaa::SmaaTarget[][src]

pub struct SmaaTarget { /* fields omitted */ }

Wraps a color buffer, which it can resolve into an antialiased image using the Subpixel Morphological Antialiasing (SMAA) algorithm.

Implementations

impl SmaaTarget[src]

pub fn new(
    device: &Device,
    queue: &Queue,
    width: u32,
    height: u32,
    format: TextureFormat,
    mode: SmaaMode
) -> Self
[src]

Create a new SmaaTarget.

pub fn resize(&mut self, device: &Device, width: u32, height: u32)[src]

Resize the render target.

pub fn start_frame<'a>(
    &'a mut self,
    device: &'a Device,
    queue: &'a Queue,
    output_view: &'a TextureView
) -> SmaaFrame<'a>
[src]

Start rendering a frame. Dropping the returned frame object will resolve the scene into the provided output_view.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast<T> for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T