Skip to main content

ReadbackExt

Trait ReadbackExt 

Source
pub trait ReadbackExt {
    // Required method
    fn capture_texture(
        &self,
        texture: &Texture,
    ) -> Result<GpuReadback, ReadbackError>;
}
Expand description

Extension trait for convenient screenshot capture.

Required Methods§

Source

fn capture_texture( &self, texture: &Texture, ) -> Result<GpuReadback, ReadbackError>

Capture a screenshot from a texture.

Implementations on Foreign Types§

Source§

impl ReadbackExt for Arc<GraphicsContext>

Implementors§