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 classAn array ofVkClusterAccelerationStructureTriangleClusterInputNVstructs.Nested 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 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkClusterAccelerationStructureTriangleClusterInputNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkClusterAccelerationStructureTriangleClusterInputNVinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkClusterAccelerationStructureTriangleClusterInputNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkClusterAccelerationStructureTriangleClusterInputNVinstance allocated withBufferUtils.create(int capacity) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkClusterAccelerationStructureTriangleClusterInputNVinstance for the specified memory address.create(long address, int capacity) Create aVkClusterAccelerationStructureTriangleClusterInputNV.Bufferinstance at the specified memory.static @Nullable VkClusterAccelerationStructureTriangleClusterInputNVcreateSafe(long address) static @Nullable VkClusterAccelerationStructureTriangleClusterInputNV.BuffercreateSafe(long address, int capacity) malloc()Returns a newVkClusterAccelerationStructureTriangleClusterInputNVinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkClusterAccelerationStructureTriangleClusterInputNVinstance allocated on the specifiedMemoryStack.intmaxClusterTriangleCount(int value) Sets the specified value to themaxClusterTriangleCountfield.intmaxClusterUniqueGeometryCount(int value) Sets the specified value to themaxClusterUniqueGeometryCountfield.intmaxClusterVertexCount(int value) Sets the specified value to themaxClusterVertexCountfield.intmaxGeometryIndexValue(int value) Sets the specified value to themaxGeometryIndexValuefield.intmaxTotalTriangleCount(int value) Sets the specified value to themaxTotalTriangleCountfield.intmaxTotalVertexCount(int value) Sets the specified value to themaxTotalVertexCountfield.intminPositionTruncateBitCount(int value) Sets the specified value to theminPositionTruncateBitCountfield.static intnmaxClusterTriangleCount(long struct) Unsafe version ofmaxClusterTriangleCount().static voidnmaxClusterTriangleCount(long struct, int value) Unsafe version ofmaxClusterTriangleCount.static intnmaxClusterUniqueGeometryCount(long struct) Unsafe version ofmaxClusterUniqueGeometryCount().static voidnmaxClusterUniqueGeometryCount(long struct, int value) Unsafe version ofmaxClusterUniqueGeometryCount.static intnmaxClusterVertexCount(long struct) Unsafe version ofmaxClusterVertexCount().static voidnmaxClusterVertexCount(long struct, int value) Unsafe version ofmaxClusterVertexCount.static intnmaxGeometryIndexValue(long struct) Unsafe version ofmaxGeometryIndexValue().static voidnmaxGeometryIndexValue(long struct, int value) Unsafe version ofmaxGeometryIndexValue.static intnmaxTotalTriangleCount(long struct) Unsafe version ofmaxTotalTriangleCount().static voidnmaxTotalTriangleCount(long struct, int value) Unsafe version ofmaxTotalTriangleCount.static intnmaxTotalVertexCount(long struct) Unsafe version ofmaxTotalVertexCount().static voidnmaxTotalVertexCount(long struct, int value) Unsafe version ofmaxTotalVertexCount.static intnminPositionTruncateBitCount(long struct) Unsafe version ofminPositionTruncateBitCount().static voidnminPositionTruncateBitCount(long struct, int value) Unsafe version ofminPositionTruncateBitCount.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 intnvertexFormat(long struct) Unsafe version ofvertexFormat().static voidnvertexFormat(long struct, int value) Unsafe version ofvertexFormat.longpNext()pNext(long value) Sets the specified value to thepNextfield.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.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_CLUSTER_ACCELERATION_STRUCTURE_TRIANGLE_CLUSTER_INPUT_NVvalue to thesTypefield.intvertexFormat(int value) Sets the specified value to thevertexFormatfield.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. -
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 aVkClusterAccelerationStructureTriangleClusterInputNVinstance 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<VkClusterAccelerationStructureTriangleClusterInputNV>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
vertexFormat
public int vertexFormat()- Returns:
- the value of the
vertexFormatfield.
-
maxGeometryIndexValue
public int maxGeometryIndexValue()- Returns:
- the value of the
maxGeometryIndexValuefield.
-
maxClusterUniqueGeometryCount
public int maxClusterUniqueGeometryCount()- Returns:
- the value of the
maxClusterUniqueGeometryCountfield.
-
maxClusterTriangleCount
public int maxClusterTriangleCount()- Returns:
- the value of the
maxClusterTriangleCountfield.
-
maxClusterVertexCount
public int maxClusterVertexCount()- Returns:
- the value of the
maxClusterVertexCountfield.
-
maxTotalTriangleCount
public int maxTotalTriangleCount()- Returns:
- the value of the
maxTotalTriangleCountfield.
-
maxTotalVertexCount
public int maxTotalVertexCount()- Returns:
- the value of the
maxTotalVertexCountfield.
-
minPositionTruncateBitCount
public int minPositionTruncateBitCount()- Returns:
- the value of the
minPositionTruncateBitCountfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_CLUSTER_ACCELERATION_STRUCTURE_TRIANGLE_CLUSTER_INPUT_NVvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
vertexFormat
Sets the specified value to thevertexFormatfield. -
maxGeometryIndexValue
Sets the specified value to themaxGeometryIndexValuefield. -
maxClusterUniqueGeometryCount
public VkClusterAccelerationStructureTriangleClusterInputNV maxClusterUniqueGeometryCount(int value) Sets the specified value to themaxClusterUniqueGeometryCountfield. -
maxClusterTriangleCount
Sets the specified value to themaxClusterTriangleCountfield. -
maxClusterVertexCount
Sets the specified value to themaxClusterVertexCountfield. -
maxTotalTriangleCount
Sets the specified value to themaxTotalTriangleCountfield. -
maxTotalVertexCount
Sets the specified value to themaxTotalVertexCountfield. -
minPositionTruncateBitCount
Sets the specified value to theminPositionTruncateBitCountfield. -
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 newVkClusterAccelerationStructureTriangleClusterInputNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkClusterAccelerationStructureTriangleClusterInputNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkClusterAccelerationStructureTriangleClusterInputNVinstance allocated withBufferUtils. -
create
Returns a newVkClusterAccelerationStructureTriangleClusterInputNVinstance for the specified memory address. -
createSafe
public static @Nullable VkClusterAccelerationStructureTriangleClusterInputNV createSafe(long address) -
malloc
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkClusterAccelerationStructureTriangleClusterInputNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkClusterAccelerationStructureTriangleClusterInputNV.Buffer create(long address, int capacity) Create aVkClusterAccelerationStructureTriangleClusterInputNV.Bufferinstance 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 newVkClusterAccelerationStructureTriangleClusterInputNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkClusterAccelerationStructureTriangleClusterInputNVinstance allocated on the specifiedMemoryStackand 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.Bufferinstance 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.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(). -
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.
-