LocalInvocationIndex(3)
Description
LocalInvocationIndexDecorating a variable with the
LocalInvocationIndexbuilt-in decorationwill make that variable contain a one-dimensional representation ofLocalInvocationId.This is computed as:LocalInvocationIndex = LocalInvocationId.z * WorkgroupSize.x * WorkgroupSize.y + LocalInvocationId.y * WorkgroupSize.x + LocalInvocationId.x;
VUID-LocalInvocationIndex-LocalInvocationIndex-04284
TheLocalInvocationIndexdecorationmust be used only within theGLCompute,MeshEXT,TaskEXT,MeshNV, orTaskNVExecutionModelVUID-LocalInvocationIndex-LocalInvocationIndex-04285
The variable decorated withLocalInvocationIndexmust be declaredusing theInputStorageClassVUID-LocalInvocationIndex-LocalInvocationIndex-04286
The variable decorated withLocalInvocationIndexmust be declaredas a scalar 32-bit integer value
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.