SPIR-V Built-In
WorkgroupSize
Size of a workgroup
WorkgroupSize
Decorating an object with the WorkgroupSize built-in decoration will
make that object contain the dimensions of a local workgroup.
If an object is decorated with the WorkgroupSize decoration, this takes
precedence over any LocalSize
or LocalSizeId
execution mode.
Valid Usage
VUID-WorkgroupSize-WorkgroupSize-04425
The WorkgroupSize decoration must be used only within the
GLCompute, MeshEXT, TaskEXT, MeshNV, or TaskNV
Execution Model
VUID-WorkgroupSize-WorkgroupSize-04426
The variable decorated with WorkgroupSize must be a specialization
constant or a constant
VUID-WorkgroupSize-WorkgroupSize-04427
The variable decorated with WorkgroupSize must be declared as a
three-component vector of 32-bit integer values
VUID-WorkgroupSize-TileShadingRateQCOM-10635
If the TileShadingRateQCOM Execution Mode is used,
variables decorated withWorkgroupSize must be declared using the
Input Storage Class