pub fn execute<H: Hal>(
ctx: &mut H::Context,
surface: &mut H::Texture,
recording: &Recording,
images: &[&H::Texture],
) -> Result<()>where
H::Context: HalContext<Hal = H>,Expand description
Render every pass of a recording, layers first, root into the surface.
images are the caller’s own textures, addressed by the slot a paint named.
Layer targets are allocated per call and released before returning. Pooling them was assumed to be worth doing and is not: creating and destroying a 512x512 target measures 0.6 microseconds against 53 for the submission that draws into it, so a pool would save under two percent of what a pass costs and would owe an invalidation rule in exchange.