To record an indexed indirect draw, call:
void vkCmdDrawIndexedIndirect( VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, uint32_t drawCount, uint32_t stride);
commandBufferis the command buffer into which the command is recorded.
bufferis the buffer containing draw parameters.
offsetis the byte offset into
bufferwhere parameters begin.
drawCountis the number of draws to execute, and can be zero.
strideis the byte stride between successive sets of draw parameters.
vkCmdDrawIndexedIndirect behaves similarly to vkCmdDrawIndexed
except that the parameters are read by the device from a buffer during
drawCount draws are executed by the command, with parameters taken
buffer starting at
offset and increasing by
bytes for each successive draw.
The parameters of each draw are encoded in an array of
drawCount is less than or equal to one,
stride is ignored.
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.