public class VkGeometryTrianglesNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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_SNORMindexOffset 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 VkDevicesType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.vertexData – the buffer containing vertex data for this geometry.vertexOffset – the offset in bytes within vertexData containing vertex data for this geometry.vertexCount – the number of valid vertices.vertexStride – the stride in bytes between each vertex.vertexFormat – the format of each vertex element.indexData – the buffer containing index data for this geometry.indexOffset – the offset in bytes within indexData containing index data for this geometry.indexCount – the number of indices to include in this geometry.indexType – the format of each index.transformData – a buffer containing optional reference to an array of 32-bit floats representing a 3x4 row major affine transformation matrix for this geometry.transformOffset – the offset in bytes in transformData of the transform information described above.
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 |
|---|---|
static class |
VkGeometryTrianglesNV.Buffer
An array of
VkGeometryTrianglesNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
INDEXCOUNT
The struct member offsets.
|
static int |
INDEXDATA
The struct member offsets.
|
static int |
INDEXOFFSET
The struct member offsets.
|
static int |
INDEXTYPE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
TRANSFORMDATA
The struct member offsets.
|
static int |
TRANSFORMOFFSET
The struct member offsets.
|
static int |
VERTEXCOUNT
The struct member offsets.
|
static int |
VERTEXDATA
The struct member offsets.
|
static int |
VERTEXFORMAT
The struct member offsets.
|
static int |
VERTEXOFFSET
The struct member offsets.
|
static int |
VERTEXSTRIDE
The struct member offsets.
|
| Constructor and Description |
|---|
VkGeometryTrianglesNV(java.nio.ByteBuffer container)
Creates a
VkGeometryTrianglesNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkGeometryTrianglesNV |
calloc()
Returns a new
VkGeometryTrianglesNV instance allocated with memCalloc. |
static VkGeometryTrianglesNV.Buffer |
calloc(int capacity)
Returns a new
VkGeometryTrianglesNV.Buffer instance allocated with memCalloc. |
static VkGeometryTrianglesNV |
callocStack()
Returns a new
VkGeometryTrianglesNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkGeometryTrianglesNV.Buffer |
callocStack(int capacity)
Returns a new
VkGeometryTrianglesNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkGeometryTrianglesNV.Buffer |
callocStack(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. |
static VkGeometryTrianglesNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryTrianglesNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkGeometryTrianglesNV |
create()
Returns a new
VkGeometryTrianglesNV instance allocated with BufferUtils. |
static VkGeometryTrianglesNV.Buffer |
create(int capacity)
Returns a new
VkGeometryTrianglesNV.Buffer instance allocated with BufferUtils. |
static VkGeometryTrianglesNV |
create(long address)
Returns a new
VkGeometryTrianglesNV instance for the specified memory address. |
static VkGeometryTrianglesNV.Buffer |
create(long address,
int capacity)
Create a
VkGeometryTrianglesNV.Buffer instance at the specified memory. |
static VkGeometryTrianglesNV |
createSafe(long address)
|
static VkGeometryTrianglesNV.Buffer |
createSafe(long address,
int capacity)
|
int |
indexCount()
Returns the value of the
indexCount field. |
VkGeometryTrianglesNV |
indexCount(int value)
Sets the specified value to the
indexCount field. |
long |
indexData()
Returns the value of the
indexData field. |
VkGeometryTrianglesNV |
indexData(long value)
Sets the specified value to the
indexData field. |
long |
indexOffset()
Returns the value of the
indexOffset field. |
VkGeometryTrianglesNV |
indexOffset(long value)
Sets the specified value to the
indexOffset field. |
int |
indexType()
Returns the value of the
indexType field. |
VkGeometryTrianglesNV |
indexType(int value)
Sets the specified value to the
indexType field. |
static VkGeometryTrianglesNV |
malloc()
Returns a new
VkGeometryTrianglesNV instance allocated with memAlloc. |
static VkGeometryTrianglesNV.Buffer |
malloc(int capacity)
Returns a new
VkGeometryTrianglesNV.Buffer instance allocated with memAlloc. |
static VkGeometryTrianglesNV |
mallocStack()
Returns a new
VkGeometryTrianglesNV instance allocated on the thread-local MemoryStack. |
static VkGeometryTrianglesNV.Buffer |
mallocStack(int capacity)
Returns a new
VkGeometryTrianglesNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkGeometryTrianglesNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryTrianglesNV.Buffer instance allocated on the specified MemoryStack. |
static VkGeometryTrianglesNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkGeometryTrianglesNV instance allocated on the specified MemoryStack. |
static int |
nindexCount(long struct)
Unsafe version of
indexCount(). |
static void |
nindexCount(long struct,
int value)
Unsafe version of
indexCount. |
static long |
nindexData(long struct)
Unsafe version of
indexData(). |
static void |
nindexData(long struct,
long value)
Unsafe version of
indexData. |
static long |
nindexOffset(long struct)
Unsafe version of
indexOffset(). |
static void |
nindexOffset(long struct,
long value)
Unsafe version of
indexOffset. |
static int |
nindexType(long struct)
Unsafe version of
indexType(). |
static void |
nindexType(long struct,
int value)
Unsafe version of
indexType. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static long |
ntransformData(long struct)
Unsafe version of
transformData(). |
static void |
ntransformData(long struct,
long value)
Unsafe version of
transformData. |
static long |
ntransformOffset(long struct)
Unsafe version of
transformOffset(). |
static void |
ntransformOffset(long struct,
long value)
Unsafe version of
transformOffset. |
static int |
nvertexCount(long struct)
Unsafe version of
vertexCount(). |
static void |
nvertexCount(long struct,
int value)
Unsafe version of
vertexCount. |
static long |
nvertexData(long struct)
Unsafe version of
vertexData(). |
static void |
nvertexData(long struct,
long value)
Unsafe version of
vertexData. |
static int |
nvertexFormat(long struct)
Unsafe version of
vertexFormat(). |
static void |
nvertexFormat(long struct,
int value)
Unsafe version of
vertexFormat. |
static long |
nvertexOffset(long struct)
Unsafe version of
vertexOffset(). |
static void |
nvertexOffset(long struct,
long value)
Unsafe version of
vertexOffset. |
static long |
nvertexStride(long struct)
Unsafe version of
vertexStride(). |
static void |
nvertexStride(long struct,
long value)
Unsafe version of
vertexStride. |
long |
pNext()
Returns the value of the
pNext field. |
VkGeometryTrianglesNV |
pNext(long value)
Sets the specified value to the
pNext field. |
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.
|
VkGeometryTrianglesNV |
set(VkGeometryTrianglesNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkGeometryTrianglesNV |
sType(int value)
Sets the specified value to the
sType field. |
long |
transformData()
Returns the value of the
transformData field. |
VkGeometryTrianglesNV |
transformData(long value)
Sets the specified value to the
transformData field. |
long |
transformOffset()
Returns the value of the
transformOffset field. |
VkGeometryTrianglesNV |
transformOffset(long value)
Sets the specified value to the
transformOffset field. |
int |
vertexCount()
Returns the value of the
vertexCount field. |
VkGeometryTrianglesNV |
vertexCount(int value)
Sets the specified value to the
vertexCount field. |
long |
vertexData()
Returns the value of the
vertexData field. |
VkGeometryTrianglesNV |
vertexData(long value)
Sets the specified value to the
vertexData field. |
int |
vertexFormat()
Returns the value of the
vertexFormat field. |
VkGeometryTrianglesNV |
vertexFormat(int value)
Sets the specified value to the
vertexFormat field. |
long |
vertexOffset()
Returns the value of the
vertexOffset field. |
VkGeometryTrianglesNV |
vertexOffset(long value)
Sets the specified value to the
vertexOffset field. |
long |
vertexStride()
Returns the value of the
vertexStride field. |
VkGeometryTrianglesNV |
vertexStride(long value)
Sets the specified value to the
vertexStride field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int VERTEXDATA
public static final int VERTEXOFFSET
public static final int VERTEXCOUNT
public static final int VERTEXSTRIDE
public static final int VERTEXFORMAT
public static final int INDEXDATA
public static final int INDEXOFFSET
public static final int INDEXCOUNT
public static final int INDEXTYPE
public static final int TRANSFORMDATA
public static final int TRANSFORMOFFSET
public VkGeometryTrianglesNV(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public long vertexData()
vertexData field.public long vertexOffset()
vertexOffset field.public int vertexCount()
vertexCount field.public long vertexStride()
vertexStride field.public int vertexFormat()
vertexFormat field.public long indexData()
indexData field.public long indexOffset()
indexOffset field.public int indexCount()
indexCount field.public int indexType()
indexType field.public long transformData()
transformData field.public long transformOffset()
transformOffset field.public VkGeometryTrianglesNV sType(int value)
sType field.public VkGeometryTrianglesNV pNext(long value)
pNext field.public VkGeometryTrianglesNV vertexData(long value)
vertexData field.public VkGeometryTrianglesNV vertexOffset(long value)
vertexOffset field.public VkGeometryTrianglesNV vertexCount(int value)
vertexCount field.public VkGeometryTrianglesNV vertexStride(long value)
vertexStride field.public VkGeometryTrianglesNV vertexFormat(int value)
vertexFormat field.public VkGeometryTrianglesNV indexData(long value)
indexData field.public VkGeometryTrianglesNV indexOffset(long value)
indexOffset field.public VkGeometryTrianglesNV indexCount(int value)
indexCount field.public VkGeometryTrianglesNV indexType(int value)
indexType field.public VkGeometryTrianglesNV transformData(long value)
transformData field.public VkGeometryTrianglesNV transformOffset(long value)
transformOffset field.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)
public VkGeometryTrianglesNV set(VkGeometryTrianglesNV src)
src - the source structpublic static VkGeometryTrianglesNV malloc()
VkGeometryTrianglesNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkGeometryTrianglesNV calloc()
VkGeometryTrianglesNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkGeometryTrianglesNV create()
VkGeometryTrianglesNV instance allocated with BufferUtils.public static VkGeometryTrianglesNV create(long address)
VkGeometryTrianglesNV instance for the specified memory address.@Nullable public static VkGeometryTrianglesNV createSafe(long address)
public static VkGeometryTrianglesNV.Buffer malloc(int capacity)
VkGeometryTrianglesNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkGeometryTrianglesNV.Buffer calloc(int capacity)
VkGeometryTrianglesNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkGeometryTrianglesNV.Buffer create(int capacity)
VkGeometryTrianglesNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkGeometryTrianglesNV.Buffer create(long address, int capacity)
VkGeometryTrianglesNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkGeometryTrianglesNV.Buffer createSafe(long address, int capacity)
public static VkGeometryTrianglesNV mallocStack()
VkGeometryTrianglesNV instance allocated on the thread-local MemoryStack.public static VkGeometryTrianglesNV callocStack()
VkGeometryTrianglesNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkGeometryTrianglesNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkGeometryTrianglesNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkGeometryTrianglesNV callocStack(org.lwjgl.system.MemoryStack stack)
VkGeometryTrianglesNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkGeometryTrianglesNV.Buffer mallocStack(int capacity)
VkGeometryTrianglesNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkGeometryTrianglesNV.Buffer callocStack(int capacity)
VkGeometryTrianglesNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkGeometryTrianglesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkGeometryTrianglesNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkGeometryTrianglesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkGeometryTrianglesNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static long nvertexData(long struct)
vertexData().public static long nvertexOffset(long struct)
vertexOffset().public static int nvertexCount(long struct)
vertexCount().public static long nvertexStride(long struct)
vertexStride().public static int nvertexFormat(long struct)
vertexFormat().public static long nindexData(long struct)
indexData().public static long nindexOffset(long struct)
indexOffset().public static int nindexCount(long struct)
indexCount().public static int nindexType(long struct)
indexType().public static long ntransformData(long struct)
transformData().public static long ntransformOffset(long struct)
transformOffset().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nvertexData(long struct,
long value)
vertexData.public static void nvertexOffset(long struct,
long value)
vertexOffset.public static void nvertexCount(long struct,
int value)
vertexCount.public static void nvertexStride(long struct,
long value)
vertexStride.public static void nvertexFormat(long struct,
int value)
vertexFormat.public static void nindexData(long struct,
long value)
indexData.public static void nindexOffset(long struct,
long value)
indexOffset.public static void nindexCount(long struct,
int value)
indexCount.public static void nindexType(long struct,
int value)
indexType.public static void ntransformData(long struct,
long value)
transformData.public static void ntransformOffset(long struct,
long value)
transformOffset.Copyright LWJGL. All Rights Reserved. License terms.