pub struct RenderTexture { /* private fields */ }
Expand description
A texture that can be used as a render pass attachment
Implementations§
Source§impl RenderTexture
impl RenderTexture
Sourcepub fn from_surface_texture(surface_texture: &SurfaceTexture) -> Self
pub fn from_surface_texture(surface_texture: &SurfaceTexture) -> Self
Create a render texture from a wgpu::SurfaceTexture
This is primarily used to associate the swapchain image with a render pass
Trait Implementations§
Source§impl Clone for RenderTexture
impl Clone for RenderTexture
Source§fn clone(&self) -> RenderTexture
fn clone(&self) -> RenderTexture
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RenderTexture
impl !RefUnwindSafe for RenderTexture
impl Send for RenderTexture
impl Sync for RenderTexture
impl Unpin for RenderTexture
impl !UnwindSafe for RenderTexture
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