To record a non-indexed draw, call:
void vkCmdDraw( VkCommandBuffer commandBuffer, uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance);
commandBufferis the command buffer into which the command is recorded.
vertexCountis the number of vertices to draw.
instanceCountis the number of instances to draw.
firstVertexis the index of the first vertex to draw.
firstInstanceis the instance ID of the first instance to draw.
When the command is executed, primitives are assembled using the current
primitive topology and
vertexCount consecutive vertex indices with the
vertexIndex value equal to
The primitives are drawn
instanceCount times with
firstInstance and increasing sequentially for each
The assembled primitives execute the currently bound graphics pipeline.
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-2018 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.