fx_reduce.computeShader
- README.md768 B
- bindings.yaml2.1 KB
- shader.wgsl7.7 KB
This package holds more than this page lists. See all of its files in its world.
README.md
fx_reduce
The fold of a run of elements to one element per group (the whole run, or each segment), as the one program of the
fixed device program set (proc.fx) that runs every variant of reduce. kernels/reduce states the algorithm; this
program is its twin and answers the same words.
The element, the fold and the count sources are params of one program: lanes words an element (1 to 4), kind 0 for
f32 words and 1 for i32 words, fold 0 add, 1 min, 2 max, 3 mean, 4 count, 5 argmin, 6 argmax, and flags bit 0 for a
live element count read from domain_count, bit 1 for a live segment count read from segment_count. A dispatch binds
every buffer; a buffer no count source reads is any one-word run. Params type: int (all five, plus segments).