Package org.lwjgl.vulkan
Class VkGeometryTrianglesNV
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
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;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkGeometryTrianglesNV
(ByteBuffer container) Creates aVkGeometryTrianglesNV
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkGeometryTrianglesNV
calloc()
Returns a newVkGeometryTrianglesNV
instance allocated withmemCalloc
.static VkGeometryTrianglesNV.Buffer
calloc
(int capacity) Returns a newVkGeometryTrianglesNV.Buffer
instance allocated withmemCalloc
.static VkGeometryTrianglesNV.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkGeometryTrianglesNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkGeometryTrianglesNV
calloc
(MemoryStack stack) Returns a newVkGeometryTrianglesNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkGeometryTrianglesNV
Deprecated.static VkGeometryTrianglesNV.Buffer
callocStack
(int capacity) Deprecated.static VkGeometryTrianglesNV.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkGeometryTrianglesNV
callocStack
(MemoryStack stack) Deprecated.static VkGeometryTrianglesNV
create()
Returns a newVkGeometryTrianglesNV
instance allocated withBufferUtils
.static VkGeometryTrianglesNV.Buffer
create
(int capacity) Returns a newVkGeometryTrianglesNV.Buffer
instance allocated withBufferUtils
.static VkGeometryTrianglesNV
create
(long address) Returns a newVkGeometryTrianglesNV
instance for the specified memory address.static VkGeometryTrianglesNV.Buffer
create
(long address, int capacity) Create aVkGeometryTrianglesNV.Buffer
instance at the specified memory.static @Nullable VkGeometryTrianglesNV
createSafe
(long address) static @Nullable VkGeometryTrianglesNV.Buffer
createSafe
(long address, int capacity) int
indexCount
(int value) Sets the specified value to theindexCount
field.long
indexData
(long value) Sets the specified value to theindexData
field.long
indexOffset
(long value) Sets the specified value to theindexOffset
field.int
indexType
(int value) Sets the specified value to theindexType
field.static VkGeometryTrianglesNV
malloc()
Returns a newVkGeometryTrianglesNV
instance allocated withmemAlloc
.static VkGeometryTrianglesNV.Buffer
malloc
(int capacity) Returns a newVkGeometryTrianglesNV.Buffer
instance allocated withmemAlloc
.static VkGeometryTrianglesNV.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkGeometryTrianglesNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkGeometryTrianglesNV
malloc
(MemoryStack stack) Returns a newVkGeometryTrianglesNV
instance allocated on the specifiedMemoryStack
.static VkGeometryTrianglesNV
Deprecated.static VkGeometryTrianglesNV.Buffer
mallocStack
(int capacity) Deprecated.static VkGeometryTrianglesNV.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkGeometryTrianglesNV
mallocStack
(MemoryStack stack) Deprecated.static int
nindexCount
(long struct) Unsafe version ofindexCount()
.static void
nindexCount
(long struct, int value) Unsafe version ofindexCount
.static long
nindexData
(long struct) Unsafe version ofindexData()
.static void
nindexData
(long struct, long value) Unsafe version ofindexData
.static long
nindexOffset
(long struct) Unsafe version ofindexOffset()
.static void
nindexOffset
(long struct, long value) Unsafe version ofindexOffset
.static int
nindexType
(long struct) Unsafe version ofindexType()
.static void
nindexType
(long struct, int value) Unsafe version ofindexType
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.static long
ntransformData
(long struct) Unsafe version oftransformData()
.static void
ntransformData
(long struct, long value) Unsafe version oftransformData
.static long
ntransformOffset
(long struct) Unsafe version oftransformOffset()
.static void
ntransformOffset
(long struct, long value) Unsafe version oftransformOffset
.static int
nvertexCount
(long struct) Unsafe version ofvertexCount()
.static void
nvertexCount
(long struct, int value) Unsafe version ofvertexCount
.static long
nvertexData
(long struct) Unsafe version ofvertexData()
.static void
nvertexData
(long struct, long value) Unsafe version ofvertexData
.static int
nvertexFormat
(long struct) Unsafe version ofvertexFormat()
.static void
nvertexFormat
(long struct, int value) Unsafe version ofvertexFormat
.static long
nvertexOffset
(long struct) Unsafe version ofvertexOffset()
.static void
nvertexOffset
(long struct, long value) Unsafe version ofvertexOffset
.static long
nvertexStride
(long struct) Unsafe version ofvertexStride()
.static void
nvertexStride
(long struct, long value) Unsafe version ofvertexStride
.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.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.set
(VkGeometryTrianglesNV src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_GEOMETRY_TRIANGLES_NV
value to thesType
field.long
transformData
(long value) Sets the specified value to thetransformData
field.long
transformOffset
(long value) Sets the specified value to thetransformOffset
field.int
vertexCount
(int value) Sets the specified value to thevertexCount
field.long
vertexData
(long value) Sets the specified value to thevertexData
field.int
vertexFormat
(int value) Sets the specified value to thevertexFormat
field.long
vertexOffset
(long value) Sets the specified value to thevertexOffset
field.long
vertexStride
(long value) Sets the specified value to thevertexStride
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
VERTEXDATA
public static final int VERTEXDATAThe struct member offsets. -
VERTEXOFFSET
public static final int VERTEXOFFSETThe struct member offsets. -
VERTEXCOUNT
public static final int VERTEXCOUNTThe struct member offsets. -
VERTEXSTRIDE
public static final int VERTEXSTRIDEThe struct member offsets. -
VERTEXFORMAT
public static final int VERTEXFORMATThe struct member offsets. -
INDEXDATA
public static final int INDEXDATAThe struct member offsets. -
INDEXOFFSET
public static final int INDEXOFFSETThe struct member offsets. -
INDEXCOUNT
public static final int INDEXCOUNTThe struct member offsets. -
INDEXTYPE
public static final int INDEXTYPEThe struct member offsets. -
TRANSFORMDATA
public static final int TRANSFORMDATAThe struct member offsets. -
TRANSFORMOFFSET
public static final int TRANSFORMOFFSETThe struct member offsets.
-
-
Constructor Details
-
VkGeometryTrianglesNV
Creates aVkGeometryTrianglesNV
instance at the current position of the specifiedByteBuffer
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkGeometryTrianglesNV>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
vertexData
public long vertexData()- Returns:
- the value of the
vertexData
field.
-
vertexOffset
public long vertexOffset()- Returns:
- the value of the
vertexOffset
field.
-
vertexCount
public int vertexCount()- Returns:
- the value of the
vertexCount
field.
-
vertexStride
public long vertexStride()- Returns:
- the value of the
vertexStride
field.
-
vertexFormat
public int vertexFormat()- Returns:
- the value of the
vertexFormat
field.
-
indexData
public long indexData()- Returns:
- the value of the
indexData
field.
-
indexOffset
public long indexOffset()- Returns:
- the value of the
indexOffset
field.
-
indexCount
public int indexCount()- Returns:
- the value of the
indexCount
field.
-
indexType
public int indexType()- Returns:
- the value of the
indexType
field.
-
transformData
public long transformData()- Returns:
- the value of the
transformData
field.
-
transformOffset
public long transformOffset()- Returns:
- the value of the
transformOffset
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_GEOMETRY_TRIANGLES_NV
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
vertexData
Sets the specified value to thevertexData
field. -
vertexOffset
Sets the specified value to thevertexOffset
field. -
vertexCount
Sets the specified value to thevertexCount
field. -
vertexStride
Sets the specified value to thevertexStride
field. -
vertexFormat
Sets the specified value to thevertexFormat
field. -
indexData
Sets the specified value to theindexData
field. -
indexOffset
Sets the specified value to theindexOffset
field. -
indexCount
Sets the specified value to theindexCount
field. -
indexType
Sets the specified value to theindexType
field. -
transformData
Sets the specified value to thetransformData
field. -
transformOffset
Sets the specified value to thetransformOffset
field. -
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. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkGeometryTrianglesNV
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkGeometryTrianglesNV
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkGeometryTrianglesNV
instance allocated withBufferUtils
. -
create
Returns a newVkGeometryTrianglesNV
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkGeometryTrianglesNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkGeometryTrianglesNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkGeometryTrianglesNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkGeometryTrianglesNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkGeometryTrianglesNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkGeometryTrianglesNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkGeometryTrianglesNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkGeometryTrianglesNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType()
. -
npNext
public static long npNext(long struct) Unsafe version ofpNext()
. -
nvertexData
public static long nvertexData(long struct) Unsafe version ofvertexData()
. -
nvertexOffset
public static long nvertexOffset(long struct) Unsafe version ofvertexOffset()
. -
nvertexCount
public static int nvertexCount(long struct) Unsafe version ofvertexCount()
. -
nvertexStride
public static long nvertexStride(long struct) Unsafe version ofvertexStride()
. -
nvertexFormat
public static int nvertexFormat(long struct) Unsafe version ofvertexFormat()
. -
nindexData
public static long nindexData(long struct) Unsafe version ofindexData()
. -
nindexOffset
public static long nindexOffset(long struct) Unsafe version ofindexOffset()
. -
nindexCount
public static int nindexCount(long struct) Unsafe version ofindexCount()
. -
nindexType
public static int nindexType(long struct) Unsafe version ofindexType()
. -
ntransformData
public static long ntransformData(long struct) Unsafe version oftransformData()
. -
ntransformOffset
public static long ntransformOffset(long struct) Unsafe version oftransformOffset()
. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType
. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext
. -
nvertexData
public static void nvertexData(long struct, long value) Unsafe version ofvertexData
. -
nvertexOffset
public static void nvertexOffset(long struct, long value) Unsafe version ofvertexOffset
. -
nvertexCount
public static void nvertexCount(long struct, int value) Unsafe version ofvertexCount
. -
nvertexStride
public static void nvertexStride(long struct, long value) Unsafe version ofvertexStride
. -
nvertexFormat
public static void nvertexFormat(long struct, int value) Unsafe version ofvertexFormat
. -
nindexData
public static void nindexData(long struct, long value) Unsafe version ofindexData
. -
nindexOffset
public static void nindexOffset(long struct, long value) Unsafe version ofindexOffset
. -
nindexCount
public static void nindexCount(long struct, int value) Unsafe version ofindexCount
. -
nindexType
public static void nindexType(long struct, int value) Unsafe version ofindexType
. -
ntransformData
public static void ntransformData(long struct, long value) Unsafe version oftransformData
. -
ntransformOffset
public static void ntransformOffset(long struct, long value) Unsafe version oftransformOffset
.
-