Skip to main content

apply_render_commands

Function apply_render_commands 

Source
pub fn apply_render_commands(
    renderer: &mut WgpuSceneRenderer,
    cmds: Vec<RenderCommand>,
)
Expand description

Apply a batch of RenderCommands to a scene renderer.

WgpuSurfaceBackend derefs to WgpuSceneRenderer, so this works for both the windowed backends and offscreen-device embedders.