Class VkDrawIndirectCommand

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer


    public class VkDrawIndirectCommand
    extends Struct
    Khronos Reference Page
    Vulkan Specification

    Describes an indirect draw command.

    Valid Usage
    • For a given vertex buffer binding, any attribute data fetched must be entirely contained within the corresponding vertex buffer binding
    • If the drawIndirectFirstInstance feature is not enabled, firstInstance must be 0

    Member documentation

    • vertexCount – the number of vertices to draw
    • instanceCount – the number of instances to draw
    • firstVertex – the index of the first vertex to draw
    • firstInstance – the instance ID of the first instance to draw

    Layout

    struct VkDrawIndirectCommand {
        uint32_t vertexCount;
        uint32_t instanceCount;
        uint32_t firstVertex;
        uint32_t firstInstance;
    }