Description
BaseVertex
-
Decorating a variable with the
BaseVertex
built-in will make that variable contain the integer value corresponding to the first vertex or vertex offset that was passed to the command that invoked the current vertex shader invocation. For non-indexed drawing commands, this variable is thefirstVertex
parameter to a direct drawing command or thefirstVertex
member of the structure consumed by an indirect drawing command. For indexed drawing commands, this variable is thevertexOffset
parameter to a direct drawing command or thevertexOffset
member of the structure consumed by an indirect drawing command.
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.