If indexType is INDEX_TYPE_NONE_NV, then this structure describes a set of triangles determined by vertexCount. Otherwise, this structure describes a set of indexed triangles determined by indexCount.
vertexOffset must be less than the size of vertexDatavertexOffset must be a multiple of the component size of vertexFormatvertexFormat must be one of FORMAT_R32G32B32_SFLOAT, FORMAT_R32G32_SFLOAT, FORMAT_R16G16B16_SFLOAT, FORMAT_R16G16_SFLOAT, FORMAT_R16G16_SNORM, or FORMAT_R16G16B16_SNORMvertexStride must be less than or equal to 232-1indexOffset must be less than the size of indexDataindexOffset must be a multiple of the element size of indexTypeindexType must be INDEX_TYPE_UINT16, INDEX_TYPE_UINT32, or INDEX_TYPE_NONE_NVindexData must be NULL_HANDLE if indexType is INDEX_TYPE_NONE_NVindexData must be a valid VkBuffer handle if indexType is not INDEX_TYPE_NONE_NVindexCount must be 0 if indexType is INDEX_TYPE_NONE_NVtransformOffset must be less than the size of transformDatatransformOffset must be a multiple of 16sType must be STRUCTURE_TYPE_GEOMETRY_TRIANGLES_NVpNext must be NULLvertexData is not NULL_HANDLE, vertexData must be a valid VkBuffer handlevertexFormat must be a valid VkFormat valueindexData is not NULL_HANDLE, indexData must be a valid VkBuffer handleindexType must be a valid VkIndexType valuetransformData is not NULL_HANDLE, transformData must be a valid VkBuffer handleindexData, transformData, and vertexData that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDevice
struct VkGeometryTrianglesNV {
VkStructureType sType;
void const * pNext;
VkBuffer vertexData;
VkDeviceSize vertexOffset;
uint32_t vertexCount;
VkDeviceSize vertexStride;
VkFormat vertexFormat;
VkBuffer indexData;
VkDeviceSize indexOffset;
uint32_t indexCount;
VkIndexType indexType;
VkBuffer transformData;
VkDeviceSize transformOffset;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkGeometryTrianglesNV.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | INDEXCOUNT
The struct member offsets. |
| public static final int | INDEXDATA
The struct member offsets. |
| public static final int | INDEXOFFSET
The struct member offsets. |
| public static final int | INDEXTYPE
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| public static final int | TRANSFORMDATA
The struct member offsets. |
| public static final int | TRANSFORMOFFSET
The struct member offsets. |
| public static final int | VERTEXCOUNT
The struct member offsets. |
| public static final int | VERTEXDATA
The struct member offsets. |
| public static final int | VERTEXFORMAT
The struct member offsets. |
| public static final int | VERTEXOFFSET
The struct member offsets. |
| public static final int | VERTEXSTRIDE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkGeometryTrianglesNV(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkGeometryTrianglesNV | |
| public static VkGeometryTrianglesNV. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkGeometryTrianglesNV | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkGeometryTrianglesNV. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkGeometryTrianglesNV | |
| public static VkGeometryTrianglesNV | |
| public static VkGeometryTrianglesNV. | |
| public static VkGeometryTrianglesNV. | |
| protected VkGeometryTrianglesNV | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkGeometryTrianglesNV | |
| public static VkGeometryTrianglesNV | |
| public static VkGeometryTrianglesNV. | create(int
the buffer capacity capacity)Returns a new |
| public static VkGeometryTrianglesNV. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkGeometryTrianglesNV | |
| public static VkGeometryTrianglesNV. | |
| public int | |
| public VkGeometryTrianglesNV | |
| public long | |
| public VkGeometryTrianglesNV | |
| public long | |
| public VkGeometryTrianglesNV | |
| public int | |
| public VkGeometryTrianglesNV | |
| public static VkGeometryTrianglesNV | |
| public static VkGeometryTrianglesNV. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkGeometryTrianglesNV | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkGeometryTrianglesNV. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkGeometryTrianglesNV | |
| public static VkGeometryTrianglesNV | |
| public static VkGeometryTrianglesNV. | |
| public static VkGeometryTrianglesNV. | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public long | |
| public VkGeometryTrianglesNV | |
| 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. |
| public VkGeometryTrianglesNV | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkGeometryTrianglesNV | |
| public VkGeometryTrianglesNV | |
| public long | transformData()
an optional buffer containing an |
| public VkGeometryTrianglesNV | |
| public long | |
| public VkGeometryTrianglesNV | |
| public int | |
| public VkGeometryTrianglesNV | |
| public long | |
| public VkGeometryTrianglesNV | |
| public int | |
| public VkGeometryTrianglesNV | |
| public long | |
| public VkGeometryTrianglesNV | |
| public long | |
| public VkGeometryTrianglesNV |