Documentation
¶
Overview ¶
Command compute-sum demonstrates a parallel reduction (sum) using a GPU compute shader. It uploads an array of uint32 values to the GPU, dispatches a compute shader that sums contiguous pairs, and reads back the partial results. The final summation is performed on the CPU.
The example is headless (no window required) and works on any supported GPU.
Click to show internal directories.
Click to hide internal directories.