Description
LocalInvocationIndex
-
Decorating a variable with the
LocalInvocationIndex
built-in decoration will 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;
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.