To bind an index buffer, along with its size, to a command buffer, call:
// Provided by VK_KHR_maintenance5 void vkCmdBindIndexBuffer2KHR( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkDeviceSize size, VkIndexType indexType);
commandBufferis the command buffer into which the command is recorded.
bufferis the buffer being bound.
offsetis the starting offset in bytes within
bufferused in index buffer address calculations.
sizeis the size in bytes of index data bound from
indexTypeis a VkIndexType value specifying the size of the indices.
size specifies the bound size of the index buffer starting from
VK_WHOLE_SIZE then the bound size is from
offset to the end of the
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.