Class VkMultiDrawInfoEXT

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

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

    The members of VkMultiDrawInfoEXT have the same meaning as the firstVertex and vertexCount parameters in CmdDraw.

    See Also

    CmdDrawMultiEXT

    Layout

    
     struct VkMultiDrawInfoEXT {
         uint32_t firstVertex();
         uint32_t vertexCount();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • FIRSTVERTEX, VERTEXCOUNT

        The struct member offsets.
    • Constructor Detail

      • VkMultiDrawInfoEXT

        public VkMultiDrawInfoEXT​(java.nio.ByteBuffer container)
        Creates a VkMultiDrawInfoEXT 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
      • firstVertex

        public int firstVertex()
        the first vertex to draw.
      • vertexCount

        public int vertexCount()
        the number of vertices to draw.
      • set

        public VkMultiDrawInfoEXT set​(int firstVertex,
                                      int vertexCount)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

        public static VkMultiDrawInfoEXT.Buffer calloc​(int capacity,
                                                       org.lwjgl.system.MemoryStack stack)
        Returns a new VkMultiDrawInfoEXT.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
      • nfirstVertex

        public static int nfirstVertex​(long struct)
        Unsafe version of firstVertex().
      • nvertexCount

        public static int nvertexCount​(long struct)
        Unsafe version of vertexCount().
      • nfirstVertex

        public static void nfirstVertex​(long struct,
                                        int value)
        Unsafe version of firstVertex.
      • nvertexCount

        public static void nvertexCount​(long struct,
                                        int value)
        Unsafe version of vertexCount.