GlobalInvocationId(3)
Description
GlobalInvocationIdDecorating a variable with the
GlobalInvocationIdbuilt-in decorationwill make that variable contain the location of the current invocationwithin the global workgroup.Each component is equal to the index of the local workgroup multiplied bythe size of the local workgroup plusLocalInvocationId.
VUID-GlobalInvocationId-GlobalInvocationId-04236
TheGlobalInvocationIddecorationmust be used only within theGLCompute,MeshEXT,TaskEXT,MeshNV, orTaskNVExecutionModelVUID-GlobalInvocationId-GlobalInvocationId-04237
The variable decorated withGlobalInvocationIdmust be declaredusing theInputStorageClassVUID-GlobalInvocationId-GlobalInvocationId-04238
The variable decorated withGlobalInvocationIdmust be declared asa three-component vector of 32-bit integer values
Document Notes
For more information, see theVulkan Specification (NOTE: cannot determine Specification page containing this refpage).
This page is extracted from the Vulkan Specification.Fixes and changes should be made to the Specification, not directly.