To bind an index buffer to a command buffer, call:
void vkCmdBindIndexBuffer( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, 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.
indexTypeis a VkIndexType value specifying whether indices are treated as 16 bits or 32 bits.
For more information, see the Vulkan Specification at URL
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification,not directly.
Copyright (c) 2014-2017 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.