Description
DrawIndex-
Decorating a variable with the
DrawIndexbuilt-in will make that variable contain the integer value corresponding to the zero-based index of the draw that invoked the current vertex shader invocation. For indirect drawing commands,DrawIndexbegins at zero and increments by one for each draw executed. The number of draws is given by thedrawCountparameter. For direct drawing commands,DrawIndexis always zero.DrawIndexis dynamically uniform.
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.