Compile an ExpressionGraph to a WGSL { ... } block, ready to slot into
the modifier sequence in spawn or update shaders.
Variables are declared first as var _v_<name> : <type> = <initial>;. Each
variable's initializer is compiled before the variable enters scope, so
initial can reference earlier-declared variables but never itself.
Compile an
ExpressionGraphto a WGSL{ ... }block, ready to slot into the modifier sequence in spawn or update shaders.Variables are declared first as
var _v_<name> : <type> = <initial>;. Each variable's initializer is compiled before the variable enters scope, soinitialcan reference earlier-declared variables but never itself.Actions are then emitted in order.