Class VkMultiDrawIndexedInfoEXT

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

public class VkMultiDrawIndexedInfoEXT extends org.lwjgl.system.Struct<VkMultiDrawIndexedInfoEXT> implements org.lwjgl.system.NativeResource
Structure specifying a multi-draw command.
Description

The firstIndex, indexCount, and vertexOffset members of VkMultiDrawIndexedInfoEXT have the same meaning as the firstIndex, indexCount, and vertexOffset parameters, respectively, of CmdDrawIndexed.

See Also

CmdDrawMultiIndexedEXT

Layout


 struct VkMultiDrawIndexedInfoEXT {
     uint32_t firstIndex();
     uint32_t indexCount();
     int32_t vertexOffset();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int FIRSTINDEX
      The struct member offsets.
    • INDEXCOUNT

      public static final int INDEXCOUNT
      The struct member offsets.
    • VERTEXOFFSET

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

    • VkMultiDrawIndexedInfoEXT

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

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkMultiDrawIndexedInfoEXT>
    • firstIndex

      public int firstIndex()
      the first index to draw.
    • indexCount

      public int indexCount()
      the number of vertices to draw.
    • vertexOffset

      public int vertexOffset()
      the value added to the vertex index before indexing into the vertex buffer for indexed multidraws.
    • firstIndex

      public VkMultiDrawIndexedInfoEXT firstIndex(int value)
      Sets the specified value to the firstIndex() field.
    • indexCount

      public VkMultiDrawIndexedInfoEXT indexCount(int value)
      Sets the specified value to the indexCount() field.
    • vertexOffset

      public VkMultiDrawIndexedInfoEXT vertexOffset(int value)
      Sets the specified value to the vertexOffset() field.
    • set

      public VkMultiDrawIndexedInfoEXT set(int firstIndex, int indexCount, int vertexOffset)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static VkMultiDrawIndexedInfoEXT malloc()
      Returns a new VkMultiDrawIndexedInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static VkMultiDrawIndexedInfoEXT calloc()
      Returns a new VkMultiDrawIndexedInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static VkMultiDrawIndexedInfoEXT create()
      Returns a new VkMultiDrawIndexedInfoEXT instance allocated with BufferUtils.
    • create

      public static VkMultiDrawIndexedInfoEXT create(long address)
      Returns a new VkMultiDrawIndexedInfoEXT instance for the specified memory address.
    • createSafe

      public static @Nullable VkMultiDrawIndexedInfoEXT createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkMultiDrawIndexedInfoEXT.Buffer malloc(int capacity)
      Returns a new VkMultiDrawIndexedInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkMultiDrawIndexedInfoEXT.Buffer calloc(int capacity)
      Returns a new VkMultiDrawIndexedInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkMultiDrawIndexedInfoEXT.Buffer create(int capacity)
      Returns a new VkMultiDrawIndexedInfoEXT.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkMultiDrawIndexedInfoEXT.Buffer create(long address, int capacity)
      Create a VkMultiDrawIndexedInfoEXT.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkMultiDrawIndexedInfoEXT.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static VkMultiDrawIndexedInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new VkMultiDrawIndexedInfoEXT instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static VkMultiDrawIndexedInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new VkMultiDrawIndexedInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkMultiDrawIndexedInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkMultiDrawIndexedInfoEXT.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkMultiDrawIndexedInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new VkMultiDrawIndexedInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nfirstIndex

      public static int nfirstIndex(long struct)
      Unsafe version of firstIndex().
    • nindexCount

      public static int nindexCount(long struct)
      Unsafe version of indexCount().
    • nvertexOffset

      public static int nvertexOffset(long struct)
      Unsafe version of vertexOffset().
    • nfirstIndex

      public static void nfirstIndex(long struct, int value)
      Unsafe version of firstIndex.
    • nindexCount

      public static void nindexCount(long struct, int value)
      Unsafe version of indexCount.
    • nvertexOffset

      public static void nvertexOffset(long struct, int value)
      Unsafe version of vertexOffset.