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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aVkGeometryTrianglesNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkGeometryTrianglesNVcalloc()Returns a newVkGeometryTrianglesNVinstance allocated withmemCalloc.static VkGeometryTrianglesNV.Buffercalloc(int capacity) Returns a newVkGeometryTrianglesNV.Bufferinstance allocated withmemCalloc.static VkGeometryTrianglesNV.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkGeometryTrianglesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGeometryTrianglesNVcalloc(MemoryStack stack) Returns a newVkGeometryTrianglesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkGeometryTrianglesNVcreate()Returns a newVkGeometryTrianglesNVinstance allocated withBufferUtils.static VkGeometryTrianglesNV.Buffercreate(int capacity) Returns a newVkGeometryTrianglesNV.Bufferinstance allocated withBufferUtils.static VkGeometryTrianglesNVcreate(long address) Returns a newVkGeometryTrianglesNVinstance for the specified memory address.static VkGeometryTrianglesNV.Buffercreate(long address, int capacity) Create aVkGeometryTrianglesNV.Bufferinstance at the specified memory.static @Nullable VkGeometryTrianglesNVcreateSafe(long address) static @Nullable VkGeometryTrianglesNV.BuffercreateSafe(long address, int capacity) intindexCount(int value) Sets the specified value to theindexCountfield.longindexData(long value) Sets the specified value to theindexDatafield.longindexOffset(long value) Sets the specified value to theindexOffsetfield.intindexType(int value) Sets the specified value to theindexTypefield.static VkGeometryTrianglesNVmalloc()Returns a newVkGeometryTrianglesNVinstance allocated withmemAlloc.static VkGeometryTrianglesNV.Buffermalloc(int capacity) Returns a newVkGeometryTrianglesNV.Bufferinstance allocated withmemAlloc.static VkGeometryTrianglesNV.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkGeometryTrianglesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkGeometryTrianglesNVmalloc(MemoryStack stack) Returns a newVkGeometryTrianglesNVinstance allocated on the specifiedMemoryStack.static intnindexCount(long struct) Unsafe version ofindexCount().static voidnindexCount(long struct, int value) Unsafe version ofindexCount.static longnindexData(long struct) Unsafe version ofindexData().static voidnindexData(long struct, long value) Unsafe version ofindexData.static longnindexOffset(long struct) Unsafe version ofindexOffset().static voidnindexOffset(long struct, long value) Unsafe version ofindexOffset.static intnindexType(long struct) Unsafe version ofindexType().static voidnindexType(long struct, int value) Unsafe version ofindexType.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.static longntransformData(long struct) Unsafe version oftransformData().static voidntransformData(long struct, long value) Unsafe version oftransformData.static longntransformOffset(long struct) Unsafe version oftransformOffset().static voidntransformOffset(long struct, long value) Unsafe version oftransformOffset.static intnvertexCount(long struct) Unsafe version ofvertexCount().static voidnvertexCount(long struct, int value) Unsafe version ofvertexCount.static longnvertexData(long struct) Unsafe version ofvertexData().static voidnvertexData(long struct, long value) Unsafe version ofvertexData.static intnvertexFormat(long struct) Unsafe version ofvertexFormat().static voidnvertexFormat(long struct, int value) Unsafe version ofvertexFormat.static longnvertexOffset(long struct) Unsafe version ofvertexOffset().static voidnvertexOffset(long struct, long value) Unsafe version ofvertexOffset.static longnvertexStride(long struct) Unsafe version ofvertexStride().static voidnvertexStride(long struct, long value) Unsafe version ofvertexStride.longpNext()pNext(long value) Sets the specified value to thepNextfield.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.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_GEOMETRY_TRIANGLES_NVvalue to thesTypefield.longtransformData(long value) Sets the specified value to thetransformDatafield.longtransformOffset(long value) Sets the specified value to thetransformOffsetfield.intvertexCount(int value) Sets the specified value to thevertexCountfield.longvertexData(long value) Sets the specified value to thevertexDatafield.intvertexFormat(int value) Sets the specified value to thevertexFormatfield.longvertexOffset(long value) Sets the specified value to thevertexOffsetfield.longvertexStride(long value) Sets the specified value to thevertexStridefield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aVkGeometryTrianglesNVinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkGeometryTrianglesNV>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
vertexData
public long vertexData()- Returns:
- the value of the
vertexDatafield.
-
vertexOffset
public long vertexOffset()- Returns:
- the value of the
vertexOffsetfield.
-
vertexCount
public int vertexCount()- Returns:
- the value of the
vertexCountfield.
-
vertexStride
public long vertexStride()- Returns:
- the value of the
vertexStridefield.
-
vertexFormat
public int vertexFormat()- Returns:
- the value of the
vertexFormatfield.
-
indexData
public long indexData()- Returns:
- the value of the
indexDatafield.
-
indexOffset
public long indexOffset()- Returns:
- the value of the
indexOffsetfield.
-
indexCount
public int indexCount()- Returns:
- the value of the
indexCountfield.
-
indexType
public int indexType()- Returns:
- the value of the
indexTypefield.
-
transformData
public long transformData()- Returns:
- the value of the
transformDatafield.
-
transformOffset
public long transformOffset()- Returns:
- the value of the
transformOffsetfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_GEOMETRY_TRIANGLES_NVvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
vertexData
Sets the specified value to thevertexDatafield. -
vertexOffset
Sets the specified value to thevertexOffsetfield. -
vertexCount
Sets the specified value to thevertexCountfield. -
vertexStride
Sets the specified value to thevertexStridefield. -
vertexFormat
Sets the specified value to thevertexFormatfield. -
indexData
Sets the specified value to theindexDatafield. -
indexOffset
Sets the specified value to theindexOffsetfield. -
indexCount
Sets the specified value to theindexCountfield. -
indexType
Sets the specified value to theindexTypefield. -
transformData
Sets the specified value to thetransformDatafield. -
transformOffset
Sets the specified value to thetransformOffsetfield. -
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 newVkGeometryTrianglesNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkGeometryTrianglesNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkGeometryTrianglesNVinstance allocated withBufferUtils. -
create
Returns a newVkGeometryTrianglesNVinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkGeometryTrianglesNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkGeometryTrianglesNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkGeometryTrianglesNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkGeometryTrianglesNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkGeometryTrianglesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkGeometryTrianglesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkGeometryTrianglesNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkGeometryTrianglesNV.Bufferinstance allocated on the specifiedMemoryStackand 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.
-