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