v148 · WebGPU · WGSL
Workgroup Index Demo
Visualize how @builtin(workgroup_index) (the new linear_indexing built-in) assigns a unique flat index to each workgroup in a 3D dispatch grid. Click any workgroup cell to see its 3D coordinates, its workgroup_index, and the WGSL that computes it — both old boilerplate and the new built-in.
Dispatch configuration
Workgroups X
Workgroups Y
Workgroups Z
Workgroup grid (Z slice selector → click a cell):
Z =
Selected
Even index
Odd index
WGSL for selected workgroup:
Click a workgroup cell.
Click a cell in the grid to see its coordinates and workgroup_index.
implementation reference
Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗