Skip to main content

record_draw

Function record_draw 

Source
fn record_draw<'a, P: RenderPassInterface<'a>>(
    pass: &mut P,
    state: &mut PassState<'a>,
    draw: &'a DrawEntry,
)
Expand description

Records one draw: the state it changes, then the draw call itself.

The body of Scene::record’s loop, split out so the composite recorder runs the same state-reuse rules over an interleaving of several scenes’ draws.