Skip to main content

install_offscreen

Function install_offscreen 

Source
pub fn install_offscreen<R: Renderer>(app: &mut App, renderer: R)
Expand description

Put renderer, already attached to a crate::traits::FrameTarget::Offscreen image, into app.

The renderer becomes a non-send render-world resource of type R, and a system in RenderStage::Render drives it through Renderer each frame the tick renders: it resizes the image to the viewport’s physical size and presents when the renderer says the frame changed. Also installs the extract pipeline the renderer reads the retained scene from.