pub struct Frame<'a, H: Handle> { /* private fields */ }
Expand description
The current frame of a window.
Implementations§
source§impl<'a, H: Handle> Frame<'a, H>
impl<'a, H: Handle> Frame<'a, H>
sourcepub fn from_raw_parts(
handle: &'a H,
wgpu_surface_texture: SurfaceTexture
) -> Self
pub fn from_raw_parts( handle: &'a H, wgpu_surface_texture: SurfaceTexture ) -> Self
Creates a Frame from its raw parts.
sourcepub fn wgpu_surface_texture(&self) -> &SurfaceTexture
pub fn wgpu_surface_texture(&self) -> &SurfaceTexture
Returns the raw wgpu::SurfaceTexture
this Frame wraps.
sourcepub fn into_wgpu_surface_texture(self) -> SurfaceTexture
pub fn into_wgpu_surface_texture(self) -> SurfaceTexture
Consumes this Frame and returns the raw wgpu::SurfaceTexture
.
Trait Implementations§
source§impl<'a, H: Handle> Texture<H> for Frame<'a, H>
impl<'a, H: Handle> Texture<H> for Frame<'a, H>
source§fn wgpu_texture(&self) -> &Texture
fn wgpu_texture(&self) -> &Texture
Returns the
wgpu::Texture
that this Texture wraps.source§fn wgpu_texture_usage(&self) -> TextureUsages
fn wgpu_texture_usage(&self) -> TextureUsages
Auto Trait Implementations§
impl<'a, H> !RefUnwindSafe for Frame<'a, H>
impl<'a, H> Send for Frame<'a, H>where H: Sync,
impl<'a, H> Sync for Frame<'a, H>where H: Sync,
impl<'a, H> Unpin for Frame<'a, H>
impl<'a, H> !UnwindSafe for Frame<'a, H>
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