Log inGet started
Package

compute_add_vectors.computeShader

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

compute_add_vectors

Reference compute shader that adds two float arrays element-wise into a third — the multi-buffer pattern with read-only inputs.

Bindings (see bindings.yaml): a (read), b (read), result (read_write) — all 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_add_vectors", { buffers = { "a", "b", "result" }, workgroups = { 1, 1, 1 } }).