Class VkGeometryTrianglesNV

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, VERTEXDATA, VERTEXOFFSET, VERTEXCOUNT, VERTEXSTRIDE, VERTEXFORMAT, INDEXDATA, INDEXOFFSET, INDEXCOUNT, INDEXTYPE, TRANSFORMDATA, TRANSFORMOFFSET

        The struct member offsets.
    • Constructor Detail

      • VkGeometryTrianglesNV

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

        public int sType()
        the type of this structure.
      • pNext

        public long pNext()
        NULL or a pointer to a structure extending this structure.
      • vertexData

        public long vertexData()
        the buffer containing vertex data for this geometry.
      • vertexOffset

        public long vertexOffset()
        the offset in bytes within vertexData containing vertex data for this geometry.
      • vertexCount

        public int vertexCount()
        the number of valid vertices.
      • vertexStride

        public long vertexStride()
        the stride in bytes between each vertex.
      • vertexFormat

        public int vertexFormat()
        a VkFormat describing the format of each vertex element.
      • indexData

        public long indexData()
        the buffer containing index data for this geometry.
      • indexOffset

        public long indexOffset()
        the offset in bytes within indexData containing index data for this geometry.
      • indexCount

        public int indexCount()
        the number of indices to include in this geometry.
      • indexType

        public int indexType()
        a VkIndexType describing the format of each index.
      • transformData

        public long transformData()
        an optional buffer containing an VkTransformMatrixNV structure defining a transformation to be applied to this geometry.
      • transformOffset

        public long transformOffset()
        the offset in bytes in transformData of the transform information described above.
      • set

        public VkGeometryTrianglesNV set​(int sType,
                                         long pNext,
                                         long vertexData,
                                         long vertexOffset,
                                         int vertexCount,
                                         long vertexStride,
                                         int vertexFormat,
                                         long indexData,
                                         long indexOffset,
                                         int indexCount,
                                         int indexType,
                                         long transformData,
                                         long transformOffset)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • nvertexData

        public static long nvertexData​(long struct)
        Unsafe version of vertexData().
      • nvertexOffset

        public static long nvertexOffset​(long struct)
        Unsafe version of vertexOffset().
      • nvertexCount

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

        public static long nvertexStride​(long struct)
        Unsafe version of vertexStride().
      • nvertexFormat

        public static int nvertexFormat​(long struct)
        Unsafe version of vertexFormat().
      • nindexData

        public static long nindexData​(long struct)
        Unsafe version of indexData().
      • nindexOffset

        public static long nindexOffset​(long struct)
        Unsafe version of indexOffset().
      • nindexCount

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

        public static int nindexType​(long struct)
        Unsafe version of indexType().
      • ntransformData

        public static long ntransformData​(long struct)
        Unsafe version of transformData().
      • ntransformOffset

        public static long ntransformOffset​(long struct)
        Unsafe version of transformOffset().
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.
      • nvertexData

        public static void nvertexData​(long struct,
                                       long value)
        Unsafe version of vertexData.
      • nvertexOffset

        public static void nvertexOffset​(long struct,
                                         long value)
        Unsafe version of vertexOffset.
      • nvertexCount

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

        public static void nvertexStride​(long struct,
                                         long value)
        Unsafe version of vertexStride.
      • nvertexFormat

        public static void nvertexFormat​(long struct,
                                         int value)
        Unsafe version of vertexFormat.
      • nindexData

        public static void nindexData​(long struct,
                                      long value)
        Unsafe version of indexData.
      • nindexOffset

        public static void nindexOffset​(long struct,
                                        long value)
        Unsafe version of indexOffset.
      • nindexCount

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

        public static void nindexType​(long struct,
                                      int value)
        Unsafe version of indexType.
      • ntransformData

        public static void ntransformData​(long struct,
                                          long value)
        Unsafe version of transformData.
      • ntransformOffset

        public static void ntransformOffset​(long struct,
                                            long value)
        Unsafe version of transformOffset.