Struct smaa::SmaaTarget
source · [−]pub struct SmaaTarget { /* private fields */ }
Expand description
Wraps a color buffer, which it can resolve into an antialiased image using the Subpixel Morphological Antialiasing (SMAA) algorithm.
Implementations
sourceimpl SmaaTarget
impl SmaaTarget
sourcepub fn new(
device: &Device,
queue: &Queue,
width: u32,
height: u32,
format: TextureFormat,
mode: SmaaMode
) -> Self
pub fn new(
device: &Device,
queue: &Queue,
width: u32,
height: u32,
format: TextureFormat,
mode: SmaaMode
) -> Self
Create a new SmaaTarget
.
sourcepub fn start_frame<'a>(
&'a mut self,
device: &'a Device,
queue: &'a Queue,
output_view: &'a TextureView
) -> SmaaFrame<'a>
pub fn start_frame<'a>(
&'a mut self,
device: &'a Device,
queue: &'a Queue,
output_view: &'a TextureView
) -> SmaaFrame<'a>
Start rendering a frame. Dropping or calling resolve() the returned frame object will resolve the scene into the provided output_view.
Auto Trait Implementations
impl !RefUnwindSafe for SmaaTarget
impl Send for SmaaTarget
impl Sync for SmaaTarget
impl Unpin for SmaaTarget
impl !UnwindSafe for SmaaTarget
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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