Class VkDrawIndirectCommand

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDrawIndirectCommand>
org.lwjgl.vulkan.VkDrawIndirectCommand
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkDrawIndirectCommand extends org.lwjgl.system.Struct<VkDrawIndirectCommand> implements org.lwjgl.system.NativeResource
Structure specifying an indirect drawing command.
Description

The members of VkDrawIndirectCommand have the same meaning as the similarly named parameters of CmdDraw.

Valid Usage
See Also

CmdDrawIndirect

Layout


 struct VkDrawIndirectCommand {
     uint32_t vertexCount();
     uint32_t instanceCount();
     uint32_t firstVertex();
     uint32_t firstInstance();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • VERTEXCOUNT

      public static final int VERTEXCOUNT
      The struct member offsets.
    • INSTANCECOUNT

      public static final int INSTANCECOUNT
      The struct member offsets.
    • FIRSTVERTEX

      public static final int FIRSTVERTEX
      The struct member offsets.
    • FIRSTINSTANCE

      public static final int FIRSTINSTANCE
      The struct member offsets.
  • Constructor Details

    • VkDrawIndirectCommand

      public VkDrawIndirectCommand(ByteBuffer container)
      Creates a VkDrawIndirectCommand 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.

  • Method Details