Class VkMultiDrawIndexedInfoEXT

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

    public class VkMultiDrawIndexedInfoEXT
    extends org.lwjgl.system.Struct
    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 Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

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

        The struct member offsets.
    • Constructor Detail

      • VkMultiDrawIndexedInfoEXT

        public VkMultiDrawIndexedInfoEXT​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • 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.
      • set

        public VkMultiDrawIndexedInfoEXT set​(int firstIndex,
                                             int indexCount,
                                             int vertexOffset)
        Initializes this struct with the specified values.
      • 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.
      • 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
      • 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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.