pub fn set_offscreen(ctx: &Context, render: Option<Offscreen>)
Render screenshots with render instead of asking the backend to capture a presented frame (None: the backend’s ViewportCommand::Screenshot).
render
None
ViewportCommand::Screenshot