Package org.lwjgl.vulkan
Class VkPartitionedAccelerationStructureWriteInstanceDataNV
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPartitionedAccelerationStructureWriteInstanceDataNV>
org.lwjgl.vulkan.VkPartitionedAccelerationStructureWriteInstanceDataNV
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkPartitionedAccelerationStructureWriteInstanceDataNV
extends Struct<VkPartitionedAccelerationStructureWriteInstanceDataNV>
implements NativeResource
struct VkPartitionedAccelerationStructureWriteInstanceDataNV {
VkTransformMatrixKHR transform;
float explicitAABB[6];
uint32_t instanceID;
uint32_t instanceMask;
uint32_t instanceContributionToHitGroupIndex;
VkPartitionedAccelerationStructureInstanceFlagsNV instanceFlags;
uint32_t instanceIndex;
uint32_t partitionIndex;
VkDeviceAddress accelerationStructure;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkPartitionedAccelerationStructureWriteInstanceDataNVstructs.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 member offsets.static 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 size in bytes.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 aVkPartitionedAccelerationStructureWriteInstanceDataNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongaccelerationStructure(long value) Sets the specified value to theaccelerationStructurefield.calloc()Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNVinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNVinstance allocated withBufferUtils.create(int capacity) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNVinstance for the specified memory address.create(long address, int capacity) Create aVkPartitionedAccelerationStructureWriteInstanceDataNV.Bufferinstance at the specified memory.static @Nullable VkPartitionedAccelerationStructureWriteInstanceDataNVcreateSafe(long address) static @Nullable VkPartitionedAccelerationStructureWriteInstanceDataNV.BuffercreateSafe(long address, int capacity) floatexplicitAABB(int index) explicitAABB(int index, float value) Sets the specified value at the specified index of theexplicitAABBfield.explicitAABB(FloatBuffer value) Copies the specifiedFloatBufferto theexplicitAABBfield.intinstanceContributionToHitGroupIndex(int value) Sets the specified value to theinstanceContributionToHitGroupIndexfield.intinstanceFlags(int value) Sets the specified value to theinstanceFlagsfield.intinstanceID(int value) Sets the specified value to theinstanceIDfield.intinstanceIndex(int value) Sets the specified value to theinstanceIndexfield.intinstanceMask(int value) Sets the specified value to theinstanceMaskfield.malloc()Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNVinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNVinstance allocated on the specifiedMemoryStack.static longnaccelerationStructure(long struct) Unsafe version ofaccelerationStructure().static voidnaccelerationStructure(long struct, long value) Unsafe version ofaccelerationStructure.static FloatBuffernexplicitAABB(long struct) Unsafe version ofexplicitAABB().static floatnexplicitAABB(long struct, int index) Unsafe version ofexplicitAABB.static voidnexplicitAABB(long struct, int index, float value) Unsafe version ofexplicitAABB.static voidnexplicitAABB(long struct, FloatBuffer value) Unsafe version ofexplicitAABB.static intninstanceContributionToHitGroupIndex(long struct) Unsafe version ofinstanceContributionToHitGroupIndex().static voidninstanceContributionToHitGroupIndex(long struct, int value) Unsafe version ofinstanceContributionToHitGroupIndex.static intninstanceFlags(long struct) Unsafe version ofinstanceFlags().static voidninstanceFlags(long struct, int value) Unsafe version ofinstanceFlags.static intninstanceID(long struct) Unsafe version ofinstanceID().static voidninstanceID(long struct, int value) Unsafe version ofinstanceID.static intninstanceIndex(long struct) Unsafe version ofinstanceIndex().static voidninstanceIndex(long struct, int value) Unsafe version ofinstanceIndex.static intninstanceMask(long struct) Unsafe version ofinstanceMask().static voidninstanceMask(long struct, int value) Unsafe version ofinstanceMask.static intnpartitionIndex(long struct) Unsafe version ofpartitionIndex().static voidnpartitionIndex(long struct, int value) Unsafe version ofpartitionIndex.static VkTransformMatrixKHRntransform(long struct) Unsafe version oftransform().static voidntransform(long struct, VkTransformMatrixKHR value) Unsafe version oftransform.intpartitionIndex(int value) Sets the specified value to thepartitionIndexfield.Copies the specified struct data to this struct.set(VkTransformMatrixKHR transform, FloatBuffer explicitAABB, int instanceID, int instanceMask, int instanceContributionToHitGroupIndex, int instanceFlags, int instanceIndex, int partitionIndex, long accelerationStructure) Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).transform(Consumer<VkTransformMatrixKHR> consumer) Passes thetransformfield to the specifiedConsumer.transform(VkTransformMatrixKHR value) Copies the specifiedVkTransformMatrixKHRto thetransformfield.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. -
TRANSFORM
public static final int TRANSFORMThe struct member offsets. -
EXPLICITAABB
public static final int EXPLICITAABBThe struct member offsets. -
INSTANCEID
public static final int INSTANCEIDThe struct member offsets. -
INSTANCEMASK
public static final int INSTANCEMASKThe struct member offsets. -
INSTANCECONTRIBUTIONTOHITGROUPINDEX
public static final int INSTANCECONTRIBUTIONTOHITGROUPINDEXThe struct member offsets. -
INSTANCEFLAGS
public static final int INSTANCEFLAGSThe struct member offsets. -
INSTANCEINDEX
public static final int INSTANCEINDEXThe struct member offsets. -
PARTITIONINDEX
public static final int PARTITIONINDEXThe struct member offsets. -
ACCELERATIONSTRUCTURE
public static final int ACCELERATIONSTRUCTUREThe struct member offsets.
-
-
Constructor Details
-
VkPartitionedAccelerationStructureWriteInstanceDataNV
Creates aVkPartitionedAccelerationStructureWriteInstanceDataNVinstance 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<VkPartitionedAccelerationStructureWriteInstanceDataNV>
-
transform
- Returns:
- a
VkTransformMatrixKHRview of thetransformfield.
-
explicitAABB
- Returns:
- a
FloatBufferview of theexplicitAABBfield.
-
explicitAABB
public float explicitAABB(int index) - Returns:
- the value at the specified index of the
explicitAABBfield.
-
instanceID
public int instanceID()- Returns:
- the value of the
instanceIDfield.
-
instanceMask
public int instanceMask()- Returns:
- the value of the
instanceMaskfield.
-
instanceContributionToHitGroupIndex
public int instanceContributionToHitGroupIndex()- Returns:
- the value of the
instanceContributionToHitGroupIndexfield.
-
instanceFlags
public int instanceFlags()- Returns:
- the value of the
instanceFlagsfield.
-
instanceIndex
public int instanceIndex()- Returns:
- the value of the
instanceIndexfield.
-
partitionIndex
public int partitionIndex()- Returns:
- the value of the
partitionIndexfield.
-
accelerationStructure
public long accelerationStructure()- Returns:
- the value of the
accelerationStructurefield.
-
transform
Copies the specifiedVkTransformMatrixKHRto thetransformfield. -
transform
public VkPartitionedAccelerationStructureWriteInstanceDataNV transform(Consumer<VkTransformMatrixKHR> consumer) Passes thetransformfield to the specifiedConsumer. -
explicitAABB
Copies the specifiedFloatBufferto theexplicitAABBfield. -
explicitAABB
Sets the specified value at the specified index of theexplicitAABBfield. -
instanceID
Sets the specified value to theinstanceIDfield. -
instanceMask
Sets the specified value to theinstanceMaskfield. -
instanceContributionToHitGroupIndex
public VkPartitionedAccelerationStructureWriteInstanceDataNV instanceContributionToHitGroupIndex(int value) Sets the specified value to theinstanceContributionToHitGroupIndexfield. -
instanceFlags
Sets the specified value to theinstanceFlagsfield. -
instanceIndex
Sets the specified value to theinstanceIndexfield. -
partitionIndex
Sets the specified value to thepartitionIndexfield. -
accelerationStructure
Sets the specified value to theaccelerationStructurefield. -
set
public VkPartitionedAccelerationStructureWriteInstanceDataNV set(VkTransformMatrixKHR transform, FloatBuffer explicitAABB, int instanceID, int instanceMask, int instanceContributionToHitGroupIndex, int instanceFlags, int instanceIndex, int partitionIndex, long accelerationStructure) Initializes this struct with the specified values. -
set
public VkPartitionedAccelerationStructureWriteInstanceDataNV set(VkPartitionedAccelerationStructureWriteInstanceDataNV src) Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNVinstance allocated withBufferUtils. -
create
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNVinstance for the specified memory address. -
createSafe
public static @Nullable VkPartitionedAccelerationStructureWriteInstanceDataNV createSafe(long address) -
malloc
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer create(long address, int capacity) Create aVkPartitionedAccelerationStructureWriteInstanceDataNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntransform
Unsafe version oftransform(). -
nexplicitAABB
Unsafe version ofexplicitAABB(). -
nexplicitAABB
public static float nexplicitAABB(long struct, int index) Unsafe version ofexplicitAABB. -
ninstanceID
public static int ninstanceID(long struct) Unsafe version ofinstanceID(). -
ninstanceMask
public static int ninstanceMask(long struct) Unsafe version ofinstanceMask(). -
ninstanceContributionToHitGroupIndex
public static int ninstanceContributionToHitGroupIndex(long struct) Unsafe version ofinstanceContributionToHitGroupIndex(). -
ninstanceFlags
public static int ninstanceFlags(long struct) Unsafe version ofinstanceFlags(). -
ninstanceIndex
public static int ninstanceIndex(long struct) Unsafe version ofinstanceIndex(). -
npartitionIndex
public static int npartitionIndex(long struct) Unsafe version ofpartitionIndex(). -
naccelerationStructure
public static long naccelerationStructure(long struct) Unsafe version ofaccelerationStructure(). -
ntransform
Unsafe version oftransform. -
nexplicitAABB
Unsafe version ofexplicitAABB. -
nexplicitAABB
public static void nexplicitAABB(long struct, int index, float value) Unsafe version ofexplicitAABB. -
ninstanceID
public static void ninstanceID(long struct, int value) Unsafe version ofinstanceID. -
ninstanceMask
public static void ninstanceMask(long struct, int value) Unsafe version ofinstanceMask. -
ninstanceContributionToHitGroupIndex
public static void ninstanceContributionToHitGroupIndex(long struct, int value) Unsafe version ofinstanceContributionToHitGroupIndex. -
ninstanceFlags
public static void ninstanceFlags(long struct, int value) Unsafe version ofinstanceFlags. -
ninstanceIndex
public static void ninstanceIndex(long struct, int value) Unsafe version ofinstanceIndex. -
npartitionIndex
public static void npartitionIndex(long struct, int value) Unsafe version ofpartitionIndex. -
naccelerationStructure
public static void naccelerationStructure(long struct, long value) Unsafe version ofaccelerationStructure.
-