Class VkDrawIndexedIndirectCommand

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

    public class VkDrawIndexedIndirectCommand
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.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
    • 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
    • (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
    • 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();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • INDEXCOUNT, INSTANCECOUNT, FIRSTINDEX, VERTEXOFFSET, FIRSTINSTANCE

        The struct member offsets.
    • Constructor Detail

      • VkDrawIndexedIndirectCommand

        public VkDrawIndexedIndirectCommand​(java.nio.ByteBuffer container)
        Creates a VkDrawIndexedIndirectCommand instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.