Description
SubgroupSize-
Decorating a variable with the
SubgroupSizebuiltin decoration will make that variable contain the implementation-dependent number of invocations in a subgroup. This value must be a power-of-two integer.If the shader was created with varying subgroup size allowed, the
SubgroupSizedecorated variable will contain the subgroup size for each subgroup that gets dispatched. This value must be betweenminSubgroupSizeandmaxSubgroupSizeand must be uniform with subgroup scope.If the shader was created with a required subgroup size, the
SubgroupSizedecorated variable will match that value.If the shader does not allow varying subgroup sizes, the variable decorated with
SubgroupSizewill matchsubgroupSize.The maximum number of invocations that an implementation can support per subgroup is 128.
Document Notes
For more information, see the Vulkan Specification.
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.