Skip to main content

render_offscreen

Function render_offscreen 

Source
pub fn render_offscreen(
    scene: &Scene,
    width: u32,
    height: u32,
    clear: Color,
) -> Option<OffscreenFrame>
Expand description

Renders scene into a width×height texture cleared to clear, then reads the pixels back. None when no GPU adapter is available — a machine with neither GPU nor software rasteriser — in which case test callers skip themselves.