SPIR-V Built-In
WorkgroupId
Workgroup ID of a shader
WorkgroupId
Decorating a variable with the WorkgroupId built-in decoration will
make that variable contain the global workgroup that the current invocation
is a member of.
Each component ranges from a base value to a base + count value,
based on the parameters passed into the dispatching commands.
Valid Usage
VUID-WorkgroupId-WorkgroupId-04422
The WorkgroupId decoration must be used only within the
GLCompute, MeshEXT, TaskEXT, MeshNV, or TaskNV
Execution Model
VUID-WorkgroupId-WorkgroupId-04423
The variable decorated with WorkgroupId must be declared using the
Input Storage Class
VUID-WorkgroupId-WorkgroupId-04424
The variable decorated with WorkgroupId must be declared as a
three-component vector of 32-bit integer values