Skip to main content

FrameCaptureBackend

Trait FrameCaptureBackend 

Source
pub trait FrameCaptureBackend {
    // Required method
    fn capture_render_frame(
        &mut self,
        images: &ImageManager,
        frame: &RenderFrame,
        logical_width: u32,
        logical_height: u32,
    ) -> Result<RgbaImage>;
}
Expand description

GPU service for original-engine capture commands. Captures must pass through the same render graph as presentation so meshes, depth, fog and shader state are preserved.

Required Methods§

Source

fn capture_render_frame( &mut self, images: &ImageManager, frame: &RenderFrame, logical_width: u32, logical_height: u32, ) -> Result<RgbaImage>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§