Description
InstanceIndex
-
Decorating a variable in a vertex shader with the
InstanceIndex
built-in decoration will make that variable contain the index of the instance that is being processed by the current vertex shader invocation.InstanceIndex
begins at thefirstInstance
parameter to vkCmdDraw or vkCmdDrawIndexed or at thefirstInstance
member of a structure consumed by vkCmdDrawIndirect or vkCmdDrawIndexedIndirect.
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.