Skip to main content

Offscreen

Type Alias Offscreen 

Source
pub type Offscreen = Arc<dyn Fn(&OffscreenFrame<'_>) -> Result<ColorImage, String> + Send + Sync>;
Expand description

Renders a frame without presenting it: screenshots then work for a window that is covered, in the background or on a locked screen. ashlar-app installs one for its wgpu renderer.

Aliased Typeยง

pub struct Offscreen { /* private fields */ }