op.readyWhen
Run nothing until fn returns true, typically once the child's picture has arrived through bindInputs.
op.readyWhen(fn: () => boolean): GridStage
Import sim from shaders/std and use sim.grids.op.readyWhen.
Parameters
| Name | Type | Notes |
|---|---|---|
fn | () => boolean |
Example
op.readyWhen(() => lumaReady)
See also
op.cache— A GPU pass chosen per frame, for a pass whose input is rebound after the frame starts.