stage.cache
A GPU pass chosen per frame, for a pass whose input is rebound after the frame starts.
stage.cache(step: (f: GridFrame) => ComputeStep): GridStage
Import sim from shaders/std and use sim.grids.stage.cache.
Parameters
| Name | Type | Notes |
|---|---|---|
step | (f: GridFrame) => ComputeStep |
Example
stage.cache(() => lumaPipeline)
See also
stage.readyWhen— Run nothing untilfnreturns true, typically once the child's picture has arrived throughbindInputs.stage.pass— One GPU pass, the same every frame.