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 {
{@link VkTransformMatrixKHR 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 class
An array ofVkPartitionedAccelerationStructureWriteInstanceDataNV
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 member offsets.static 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 size in bytes.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 aVkPartitionedAccelerationStructureWriteInstanceDataNV
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
accelerationStructure
(long value) Sets the specified value to theaccelerationStructure
field.calloc()
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV
instance for the specified memory address.create
(long address, int capacity) Create aVkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer
instance at the specified memory.static @Nullable VkPartitionedAccelerationStructureWriteInstanceDataNV
createSafe
(long address) static @Nullable VkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer
createSafe
(long address, int capacity) float
explicitAABB
(int index) explicitAABB
(int index, float value) Sets the specified value at the specified index of theexplicitAABB
field.explicitAABB
(FloatBuffer value) Copies the specifiedFloatBuffer
to theexplicitAABB
field.int
instanceContributionToHitGroupIndex
(int value) Sets the specified value to theinstanceContributionToHitGroupIndex
field.int
instanceFlags
(int value) Sets the specified value to theinstanceFlags
field.int
instanceID
(int value) Sets the specified value to theinstanceID
field.int
instanceIndex
(int value) Sets the specified value to theinstanceIndex
field.int
instanceMask
(int value) Sets the specified value to theinstanceMask
field.malloc()
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV
instance allocated on the specifiedMemoryStack
.static long
naccelerationStructure
(long struct) Unsafe version ofaccelerationStructure()
.static void
naccelerationStructure
(long struct, long value) Unsafe version ofaccelerationStructure
.static FloatBuffer
nexplicitAABB
(long struct) Unsafe version ofexplicitAABB()
.static float
nexplicitAABB
(long struct, int index) Unsafe version ofexplicitAABB
.static void
nexplicitAABB
(long struct, int index, float value) Unsafe version ofexplicitAABB
.static void
nexplicitAABB
(long struct, FloatBuffer value) Unsafe version ofexplicitAABB
.static int
ninstanceContributionToHitGroupIndex
(long struct) Unsafe version ofinstanceContributionToHitGroupIndex()
.static void
ninstanceContributionToHitGroupIndex
(long struct, int value) Unsafe version ofinstanceContributionToHitGroupIndex
.static int
ninstanceFlags
(long struct) Unsafe version ofinstanceFlags()
.static void
ninstanceFlags
(long struct, int value) Unsafe version ofinstanceFlags
.static int
ninstanceID
(long struct) Unsafe version ofinstanceID()
.static void
ninstanceID
(long struct, int value) Unsafe version ofinstanceID
.static int
ninstanceIndex
(long struct) Unsafe version ofinstanceIndex()
.static void
ninstanceIndex
(long struct, int value) Unsafe version ofinstanceIndex
.static int
ninstanceMask
(long struct) Unsafe version ofinstanceMask()
.static void
ninstanceMask
(long struct, int value) Unsafe version ofinstanceMask
.static int
npartitionIndex
(long struct) Unsafe version ofpartitionIndex()
.static void
npartitionIndex
(long struct, int value) Unsafe version ofpartitionIndex
.static VkTransformMatrixKHR
ntransform
(long struct) Unsafe version oftransform()
.static void
ntransform
(long struct, VkTransformMatrixKHR value) Unsafe version oftransform
.int
partitionIndex
(int value) Sets the specified value to thepartitionIndex
field.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.int
sizeof()
Returnssizeof(struct)
.transform
(Consumer<VkTransformMatrixKHR> consumer) Passes thetransform
field to the specifiedConsumer
.transform
(VkTransformMatrixKHR value) Copies the specifiedVkTransformMatrixKHR
to thetransform
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. -
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 aVkPartitionedAccelerationStructureWriteInstanceDataNV
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<VkPartitionedAccelerationStructureWriteInstanceDataNV>
-
transform
- Returns:
- a
VkTransformMatrixKHR
view of thetransform
field.
-
explicitAABB
- Returns:
- a
FloatBuffer
view of theexplicitAABB
field.
-
explicitAABB
public float explicitAABB(int index) - Returns:
- the value at the specified index of the
explicitAABB
field.
-
instanceID
public int instanceID()- Returns:
- the value of the
instanceID
field.
-
instanceMask
public int instanceMask()- Returns:
- the value of the
instanceMask
field.
-
instanceContributionToHitGroupIndex
public int instanceContributionToHitGroupIndex()- Returns:
- the value of the
instanceContributionToHitGroupIndex
field.
-
instanceFlags
public int instanceFlags()- Returns:
- the value of the
instanceFlags
field.
-
instanceIndex
public int instanceIndex()- Returns:
- the value of the
instanceIndex
field.
-
partitionIndex
public int partitionIndex()- Returns:
- the value of the
partitionIndex
field.
-
accelerationStructure
public long accelerationStructure()- Returns:
- the value of the
accelerationStructure
field.
-
transform
Copies the specifiedVkTransformMatrixKHR
to thetransform
field. -
transform
public VkPartitionedAccelerationStructureWriteInstanceDataNV transform(Consumer<VkTransformMatrixKHR> consumer) Passes thetransform
field to the specifiedConsumer
. -
explicitAABB
Copies the specifiedFloatBuffer
to theexplicitAABB
field. -
explicitAABB
Sets the specified value at the specified index of theexplicitAABB
field. -
instanceID
Sets the specified value to theinstanceID
field. -
instanceMask
Sets the specified value to theinstanceMask
field. -
instanceContributionToHitGroupIndex
public VkPartitionedAccelerationStructureWriteInstanceDataNV instanceContributionToHitGroupIndex(int value) Sets the specified value to theinstanceContributionToHitGroupIndex
field. -
instanceFlags
Sets the specified value to theinstanceFlags
field. -
instanceIndex
Sets the specified value to theinstanceIndex
field. -
partitionIndex
Sets the specified value to thepartitionIndex
field. -
accelerationStructure
Sets the specified value to theaccelerationStructure
field. -
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 newVkPartitionedAccelerationStructureWriteInstanceDataNV
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV
instance allocated withBufferUtils
. -
create
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV
instance for the specified memory address. -
createSafe
public static @Nullable VkPartitionedAccelerationStructureWriteInstanceDataNV createSafe(long address) -
malloc
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer create(long address, int capacity) Create aVkPartitionedAccelerationStructureWriteInstanceDataNV.Buffer
instance 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 newVkPartitionedAccelerationStructureWriteInstanceDataNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkPartitionedAccelerationStructureWriteInstanceDataNV
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-