op.pass

One GPU pass, the same every frame.

op.pass(step: ComputeStep): GridStage

Import sim from shaders/std and use sim.grids.op.pass.

Parameters

NameTypeNotes
stepComputeStep

Example

op.pass(update)

See also

  • op.cache — A GPU pass chosen per frame, for a pass whose input is rebound after the frame starts.
  • op.iterate — Run a step count times this frame.
  • op.publish — The last stage: write the state into the texture the layer samples.