Builtin Library
- ..
- .metadata17 B
- README.md457 B
- bindings.yaml88 B
- shader.wgsl1.0 KB
README.md
compute_double
Reference compute shader that doubles every f32 in a storage buffer — the
simplest possible compute pattern (one read-write buffer, no inputs).
Bindings (see bindings.yaml): data — read_write array<f32>.
Usage: dispatch by identity — it resolves to the shader's stable guid and
auto-compiles on first use (no setup):
compute.dispatch("@builtin::shaders.compute_double", { buffers = { "data" }, workgroups = { 1, 1, 1 } }).