Builtin Library
- ..
- README.md475 B
- bindings.yaml157 B
- shader.wgsl687 B
README.md
compute_fft_scale
Inverse-FFT 1/N scale pass: divides every complex sample by the per-line N.
Run after the inverse FFT stages. Used by nx.gpu.fft*.
Bindings (see bindings.yaml): data (read_write array<vec2<f32>>), params
(read array<f32> — [total_elements, inv_scale]).
Usage: dispatch by identity with compute.dispatch("@builtin::shaders.compute_fft_scale", ...) —
it resolves to the shader's stable guid and auto-compiles on first use (no setup).