Skip to main content

apply_render_commands

Function apply_render_commands 

Source
pub fn apply_render_commands(
    renderer: &mut WgpuSceneRenderer,
    cmds: Vec<RenderCommand>,
) -> RenderCommandReport
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. Failures are collected rather than logged here: every caller sits inside a callback with no error channel (winit event loop, requestAnimationFrame), so reporting is the caller’s job.