Struct simple_wgpu::RenderTexture
source · 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 more