pub struct SmaaFrame<'a> { /* private fields */ }
Expand description
Frame that the scene should be rendered into; can be created by a SmaaTarget.
Implementations§
Methods from Deref<Target = TextureView>§
sourcepub fn global_id(&self) -> Id<TextureView>
pub fn global_id(&self) -> Id<TextureView>
Returns a globally-unique identifier for this TextureView
.
Calling this method multiple times on the same object will always return the same value.
The returned value is guaranteed to be different for all resources created from the same Instance
.
sourcepub unsafe fn as_hal<A, F, R>(&self, hal_texture_view_callback: F) -> R
pub unsafe fn as_hal<A, F, R>(&self, hal_texture_view_callback: F) -> R
Returns the inner hal TextureView using a callback. The hal texture will be None
if the
backend type argument does not match with this wgpu Texture
§Safety
- The raw handle obtained from the hal TextureView must not be manually destroyed
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SmaaFrame<'a>
impl<'a> !RefUnwindSafe for SmaaFrame<'a>
impl<'a> Send for SmaaFrame<'a>
impl<'a> Sync for SmaaFrame<'a>
impl<'a> Unpin for SmaaFrame<'a>
impl<'a> !UnwindSafe for SmaaFrame<'a>
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