@builtin("global_invocation_id")
Builtin value
The current invocation's id across the entire compute dispatch.
- Valid in
- compute input
The signature, the sentence and any message are the compiler's own text at commit af54ddad5.
Syntax
@builtin("global_invocation_id"): vec3<u32>
Examples
path/double-array/double-array.shade.tspath/image-blur/image-blur.shade.tspath/histogram/histogram.shade.tsgallery/array-length/array-length.shade.tsgallery/atomic-histogram/atomic-histogram.shade.tsgallery/compute-reduction-twin/compute-reduction-twin.shade.tsgallery/compute-sync/compute-sync.shade.tsgallery/gpu-console/gpu-console.shade.tsgallery/particle-step/particle-step.shade.tsgallery/storage-texture/storage-texture.shade.tsgallery/subgroup-reduce/subgroup-reduce.shade.tsgallery/workgroup-override/workgroup-override.shade.tsgallery/workgroup-reduce/workgroup-reduce.shade.tsgallery/workgroup-scratch/workgroup-scratch.shade.tsgallery/workgroup-tile-2d/workgroup-tile-2d.shade.ts