pub trait ReadbackExt {
// Required method
fn capture_texture(
&self,
texture: &Texture,
) -> Result<GpuReadback, ReadbackError>;
}Expand description
Extension trait for convenient screenshot capture.
Required Methods§
Sourcefn capture_texture(
&self,
texture: &Texture,
) -> Result<GpuReadback, ReadbackError>
fn capture_texture( &self, texture: &Texture, ) -> Result<GpuReadback, ReadbackError>
Capture a screenshot from a texture.