Class VkDrawIndexedIndirectCommand

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkDrawIndexedIndirectCommand extends Struct<VkDrawIndexedIndirectCommand> implements NativeResource
Structure specifying a indexed indirect drawing command.
Description

The members of VkDrawIndexedIndirectCommand have the same meaning as the similarly named parameters of CmdDrawIndexed.

Valid Usage
  • If robustBufferAccess2 is not enabled, (indexSize × (firstIndex + indexCount) + offset) must be less than or equal to the size of the bound index buffer, with indexSize being based on the type specified by indexType, where the index buffer, indexType, and offset are specified via vkCmdBindIndexBuffer or vkCmdBindIndexBuffer2KHR. If vkCmdBindIndexBuffer2KHR is used to bind the index buffer, the size of the bound index buffer is CmdBindIndexBuffer2KHR::size
  • For a given vertex buffer binding, any attribute data fetched must be entirely contained within the corresponding vertex buffer binding, as described in Vertex Input Description
  • If the drawIndirectFirstInstance feature is not enabled, firstInstance must be 0
See Also

CmdDrawIndexedIndirect

Layout


 struct VkDrawIndexedIndirectCommand {
     uint32_t indexCount();
     uint32_t instanceCount();
     uint32_t firstIndex();
     int32_t vertexOffset();
     uint32_t firstInstance();
 }