Package org.lwjgl.vulkan
Class VkClusterAccelerationStructureTriangleClusterInputNV
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkClusterAccelerationStructureTriangleClusterInputNV>
org.lwjgl.vulkan.VkClusterAccelerationStructureTriangleClusterInputNV
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkClusterAccelerationStructureTriangleClusterInputNV
extends Struct<VkClusterAccelerationStructureTriangleClusterInputNV>
implements NativeResource
struct VkClusterAccelerationStructureTriangleClusterInputNV {
VkStructureType sType;
void * pNext;
VkFormat vertexFormat;
uint32_t maxGeometryIndexValue;
uint32_t maxClusterUniqueGeometryCount;
uint32_t maxClusterTriangleCount;
uint32_t maxClusterVertexCount;
uint32_t maxTotalTriangleCount;
uint32_t maxTotalVertexCount;
uint32_t minPositionTruncateBitCount;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofVkClusterAccelerationStructureTriangleClusterInputNV
structs.Nested 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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkClusterAccelerationStructureTriangleClusterInputNV
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV
instance for the specified memory address.create
(long address, int capacity) Create aVkClusterAccelerationStructureTriangleClusterInputNV.Buffer
instance at the specified memory.static @Nullable VkClusterAccelerationStructureTriangleClusterInputNV
createSafe
(long address) static @Nullable VkClusterAccelerationStructureTriangleClusterInputNV.Buffer
createSafe
(long address, int capacity) malloc()
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV
instance allocated on the specifiedMemoryStack
.int
maxClusterTriangleCount
(int value) Sets the specified value to themaxClusterTriangleCount
field.int
maxClusterUniqueGeometryCount
(int value) Sets the specified value to themaxClusterUniqueGeometryCount
field.int
maxClusterVertexCount
(int value) Sets the specified value to themaxClusterVertexCount
field.int
maxGeometryIndexValue
(int value) Sets the specified value to themaxGeometryIndexValue
field.int
maxTotalTriangleCount
(int value) Sets the specified value to themaxTotalTriangleCount
field.int
maxTotalVertexCount
(int value) Sets the specified value to themaxTotalVertexCount
field.int
minPositionTruncateBitCount
(int value) Sets the specified value to theminPositionTruncateBitCount
field.static int
nmaxClusterTriangleCount
(long struct) Unsafe version ofmaxClusterTriangleCount()
.static void
nmaxClusterTriangleCount
(long struct, int value) Unsafe version ofmaxClusterTriangleCount
.static int
nmaxClusterUniqueGeometryCount
(long struct) Unsafe version ofmaxClusterUniqueGeometryCount()
.static void
nmaxClusterUniqueGeometryCount
(long struct, int value) Unsafe version ofmaxClusterUniqueGeometryCount
.static int
nmaxClusterVertexCount
(long struct) Unsafe version ofmaxClusterVertexCount()
.static void
nmaxClusterVertexCount
(long struct, int value) Unsafe version ofmaxClusterVertexCount
.static int
nmaxGeometryIndexValue
(long struct) Unsafe version ofmaxGeometryIndexValue()
.static void
nmaxGeometryIndexValue
(long struct, int value) Unsafe version ofmaxGeometryIndexValue
.static int
nmaxTotalTriangleCount
(long struct) Unsafe version ofmaxTotalTriangleCount()
.static void
nmaxTotalTriangleCount
(long struct, int value) Unsafe version ofmaxTotalTriangleCount
.static int
nmaxTotalVertexCount
(long struct) Unsafe version ofmaxTotalVertexCount()
.static void
nmaxTotalVertexCount
(long struct, int value) Unsafe version ofmaxTotalVertexCount
.static int
nminPositionTruncateBitCount
(long struct) Unsafe version ofminPositionTruncateBitCount()
.static void
nminPositionTruncateBitCount
(long struct, int value) Unsafe version ofminPositionTruncateBitCount
.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 int
nvertexFormat
(long struct) Unsafe version ofvertexFormat()
.static void
nvertexFormat
(long struct, int value) Unsafe version ofvertexFormat
.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.set
(int sType, long pNext, int vertexFormat, int maxGeometryIndexValue, int maxClusterUniqueGeometryCount, int maxClusterTriangleCount, int maxClusterVertexCount, int maxTotalTriangleCount, int maxTotalVertexCount, int minPositionTruncateBitCount) Initializes this struct with the specified values.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_CLUSTER_ACCELERATION_STRUCTURE_TRIANGLE_CLUSTER_INPUT_NV
value to thesType
field.int
vertexFormat
(int value) Sets the specified value to thevertexFormat
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. -
VERTEXFORMAT
public static final int VERTEXFORMATThe struct member offsets. -
MAXGEOMETRYINDEXVALUE
public static final int MAXGEOMETRYINDEXVALUEThe struct member offsets. -
MAXCLUSTERUNIQUEGEOMETRYCOUNT
public static final int MAXCLUSTERUNIQUEGEOMETRYCOUNTThe struct member offsets. -
MAXCLUSTERTRIANGLECOUNT
public static final int MAXCLUSTERTRIANGLECOUNTThe struct member offsets. -
MAXCLUSTERVERTEXCOUNT
public static final int MAXCLUSTERVERTEXCOUNTThe struct member offsets. -
MAXTOTALTRIANGLECOUNT
public static final int MAXTOTALTRIANGLECOUNTThe struct member offsets. -
MAXTOTALVERTEXCOUNT
public static final int MAXTOTALVERTEXCOUNTThe struct member offsets. -
MINPOSITIONTRUNCATEBITCOUNT
public static final int MINPOSITIONTRUNCATEBITCOUNTThe struct member offsets.
-
-
Constructor Details
-
VkClusterAccelerationStructureTriangleClusterInputNV
Creates aVkClusterAccelerationStructureTriangleClusterInputNV
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<VkClusterAccelerationStructureTriangleClusterInputNV>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
vertexFormat
public int vertexFormat()- Returns:
- the value of the
vertexFormat
field.
-
maxGeometryIndexValue
public int maxGeometryIndexValue()- Returns:
- the value of the
maxGeometryIndexValue
field.
-
maxClusterUniqueGeometryCount
public int maxClusterUniqueGeometryCount()- Returns:
- the value of the
maxClusterUniqueGeometryCount
field.
-
maxClusterTriangleCount
public int maxClusterTriangleCount()- Returns:
- the value of the
maxClusterTriangleCount
field.
-
maxClusterVertexCount
public int maxClusterVertexCount()- Returns:
- the value of the
maxClusterVertexCount
field.
-
maxTotalTriangleCount
public int maxTotalTriangleCount()- Returns:
- the value of the
maxTotalTriangleCount
field.
-
maxTotalVertexCount
public int maxTotalVertexCount()- Returns:
- the value of the
maxTotalVertexCount
field.
-
minPositionTruncateBitCount
public int minPositionTruncateBitCount()- Returns:
- the value of the
minPositionTruncateBitCount
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_CLUSTER_ACCELERATION_STRUCTURE_TRIANGLE_CLUSTER_INPUT_NV
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
vertexFormat
Sets the specified value to thevertexFormat
field. -
maxGeometryIndexValue
Sets the specified value to themaxGeometryIndexValue
field. -
maxClusterUniqueGeometryCount
public VkClusterAccelerationStructureTriangleClusterInputNV maxClusterUniqueGeometryCount(int value) Sets the specified value to themaxClusterUniqueGeometryCount
field. -
maxClusterTriangleCount
Sets the specified value to themaxClusterTriangleCount
field. -
maxClusterVertexCount
Sets the specified value to themaxClusterVertexCount
field. -
maxTotalTriangleCount
Sets the specified value to themaxTotalTriangleCount
field. -
maxTotalVertexCount
Sets the specified value to themaxTotalVertexCount
field. -
minPositionTruncateBitCount
Sets the specified value to theminPositionTruncateBitCount
field. -
set
public VkClusterAccelerationStructureTriangleClusterInputNV set(int sType, long pNext, int vertexFormat, int maxGeometryIndexValue, int maxClusterUniqueGeometryCount, int maxClusterTriangleCount, int maxClusterVertexCount, int maxTotalTriangleCount, int maxTotalVertexCount, int minPositionTruncateBitCount) Initializes this struct with the specified values. -
set
public VkClusterAccelerationStructureTriangleClusterInputNV set(VkClusterAccelerationStructureTriangleClusterInputNV src) Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV
instance allocated withBufferUtils
. -
create
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV
instance for the specified memory address. -
createSafe
public static @Nullable VkClusterAccelerationStructureTriangleClusterInputNV createSafe(long address) -
malloc
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkClusterAccelerationStructureTriangleClusterInputNV.Buffer create(long address, int capacity) Create aVkClusterAccelerationStructureTriangleClusterInputNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable VkClusterAccelerationStructureTriangleClusterInputNV.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static VkClusterAccelerationStructureTriangleClusterInputNV.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
public static VkClusterAccelerationStructureTriangleClusterInputNV.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.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()
. -
nvertexFormat
public static int nvertexFormat(long struct) Unsafe version ofvertexFormat()
. -
nmaxGeometryIndexValue
public static int nmaxGeometryIndexValue(long struct) Unsafe version ofmaxGeometryIndexValue()
. -
nmaxClusterUniqueGeometryCount
public static int nmaxClusterUniqueGeometryCount(long struct) Unsafe version ofmaxClusterUniqueGeometryCount()
. -
nmaxClusterTriangleCount
public static int nmaxClusterTriangleCount(long struct) Unsafe version ofmaxClusterTriangleCount()
. -
nmaxClusterVertexCount
public static int nmaxClusterVertexCount(long struct) Unsafe version ofmaxClusterVertexCount()
. -
nmaxTotalTriangleCount
public static int nmaxTotalTriangleCount(long struct) Unsafe version ofmaxTotalTriangleCount()
. -
nmaxTotalVertexCount
public static int nmaxTotalVertexCount(long struct) Unsafe version ofmaxTotalVertexCount()
. -
nminPositionTruncateBitCount
public static int nminPositionTruncateBitCount(long struct) Unsafe version ofminPositionTruncateBitCount()
. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType
. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext
. -
nvertexFormat
public static void nvertexFormat(long struct, int value) Unsafe version ofvertexFormat
. -
nmaxGeometryIndexValue
public static void nmaxGeometryIndexValue(long struct, int value) Unsafe version ofmaxGeometryIndexValue
. -
nmaxClusterUniqueGeometryCount
public static void nmaxClusterUniqueGeometryCount(long struct, int value) Unsafe version ofmaxClusterUniqueGeometryCount
. -
nmaxClusterTriangleCount
public static void nmaxClusterTriangleCount(long struct, int value) Unsafe version ofmaxClusterTriangleCount
. -
nmaxClusterVertexCount
public static void nmaxClusterVertexCount(long struct, int value) Unsafe version ofmaxClusterVertexCount
. -
nmaxTotalTriangleCount
public static void nmaxTotalTriangleCount(long struct, int value) Unsafe version ofmaxTotalTriangleCount
. -
nmaxTotalVertexCount
public static void nmaxTotalVertexCount(long struct, int value) Unsafe version ofmaxTotalVertexCount
. -
nminPositionTruncateBitCount
public static void nminPositionTruncateBitCount(long struct, int value) Unsafe version ofminPositionTruncateBitCount
.
-