Package org.lwjgl.vulkan
Class VkAccelerationStructureMatrixMotionInstanceNV
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkAccelerationStructureMatrixMotionInstanceNV>
org.lwjgl.vulkan.VkAccelerationStructureMatrixMotionInstanceNV
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkAccelerationStructureMatrixMotionInstanceNV
extends Struct<VkAccelerationStructureMatrixMotionInstanceNV>
implements NativeResource
struct VkAccelerationStructureMatrixMotionInstanceNV {
{@link VkTransformMatrixKHR VkTransformMatrixKHR} transformT0;
{@link VkTransformMatrixKHR VkTransformMatrixKHR} transformT1;
uint32_t instanceCustomIndex : 24;
uint32_t mask : 8;
uint32_t instanceShaderBindingTableRecordOffset : 24;
VkGeometryInstanceFlagsKHR flags : 8;
uint64_t accelerationStructureReference;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofVkAccelerationStructureMatrixMotionInstanceNV
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 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 aVkAccelerationStructureMatrixMotionInstanceNV
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
accelerationStructureReference
(long value) Sets the specified value to theaccelerationStructureReference
field.calloc()
Returns a newVkAccelerationStructureMatrixMotionInstanceNV
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkAccelerationStructureMatrixMotionInstanceNV.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureMatrixMotionInstanceNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newVkAccelerationStructureMatrixMotionInstanceNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newVkAccelerationStructureMatrixMotionInstanceNV
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkAccelerationStructureMatrixMotionInstanceNV.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newVkAccelerationStructureMatrixMotionInstanceNV
instance for the specified memory address.create
(long address, int capacity) Create aVkAccelerationStructureMatrixMotionInstanceNV.Buffer
instance at the specified memory.static @Nullable VkAccelerationStructureMatrixMotionInstanceNV
createSafe
(long address) static @Nullable VkAccelerationStructureMatrixMotionInstanceNV.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.int
instanceCustomIndex
(int value) Sets the specified value to theinstanceCustomIndex
field.int
instanceShaderBindingTableRecordOffset
(int value) Sets the specified value to theinstanceShaderBindingTableRecordOffset
field.malloc()
Returns a newVkAccelerationStructureMatrixMotionInstanceNV
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkAccelerationStructureMatrixMotionInstanceNV.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureMatrixMotionInstanceNV.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newVkAccelerationStructureMatrixMotionInstanceNV
instance allocated on the specifiedMemoryStack
.int
mask()
mask
(int value) Sets the specified value to themask
field.static long
naccelerationStructureReference
(long struct) Unsafe version ofaccelerationStructureReference()
.static void
naccelerationStructureReference
(long struct, long value) Unsafe version ofaccelerationStructureReference
.static int
nbitfield0
(long struct) static void
nbitfield0
(long struct, int value) static int
nbitfield1
(long struct) static void
nbitfield1
(long struct, int value) static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
ninstanceCustomIndex
(long struct) Unsafe version ofinstanceCustomIndex()
.static void
ninstanceCustomIndex
(long struct, int value) Unsafe version ofinstanceCustomIndex
.static int
ninstanceShaderBindingTableRecordOffset
(long struct) Unsafe version ofinstanceShaderBindingTableRecordOffset()
.static void
ninstanceShaderBindingTableRecordOffset
(long struct, int value) Unsafe version ofinstanceShaderBindingTableRecordOffset
.static int
nmask
(long struct) Unsafe version ofmask()
.static void
nmask
(long struct, int value) Unsafe version ofmask
.static VkTransformMatrixKHR
ntransformT0
(long struct) Unsafe version oftransformT0()
.static void
ntransformT0
(long struct, VkTransformMatrixKHR value) Unsafe version oftransformT0
.static VkTransformMatrixKHR
ntransformT1
(long struct) Unsafe version oftransformT1()
.static void
ntransformT1
(long struct, VkTransformMatrixKHR value) Unsafe version oftransformT1
.Copies the specified struct data to this struct.set
(VkTransformMatrixKHR transformT0, VkTransformMatrixKHR transformT1, int instanceCustomIndex, int mask, int instanceShaderBindingTableRecordOffset, int flags, long accelerationStructureReference) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.transformT0
(Consumer<VkTransformMatrixKHR> consumer) Passes thetransformT0
field to the specifiedConsumer
.transformT0
(VkTransformMatrixKHR value) Copies the specifiedVkTransformMatrixKHR
to thetransformT0
field.transformT1
(Consumer<VkTransformMatrixKHR> consumer) Passes thetransformT1
field to the specifiedConsumer
.transformT1
(VkTransformMatrixKHR value) Copies the specifiedVkTransformMatrixKHR
to thetransformT1
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. -
TRANSFORMT0
public static final int TRANSFORMT0The struct member offsets. -
TRANSFORMT1
public static final int TRANSFORMT1The struct member offsets. -
BITFIELD0
public static final int BITFIELD0The struct member offsets. -
BITFIELD1
public static final int BITFIELD1The struct member offsets. -
ACCELERATIONSTRUCTUREREFERENCE
public static final int ACCELERATIONSTRUCTUREREFERENCEThe struct member offsets.
-
-
Constructor Details
-
VkAccelerationStructureMatrixMotionInstanceNV
Creates aVkAccelerationStructureMatrixMotionInstanceNV
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<VkAccelerationStructureMatrixMotionInstanceNV>
-
transformT0
- Returns:
- a
VkTransformMatrixKHR
view of thetransformT0
field.
-
transformT1
- Returns:
- a
VkTransformMatrixKHR
view of thetransformT1
field.
-
instanceCustomIndex
public int instanceCustomIndex()- Returns:
- the value of the
instanceCustomIndex
field.
-
mask
public int mask()- Returns:
- the value of the
mask
field.
-
instanceShaderBindingTableRecordOffset
public int instanceShaderBindingTableRecordOffset()- Returns:
- the value of the
instanceShaderBindingTableRecordOffset
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
accelerationStructureReference
public long accelerationStructureReference()- Returns:
- the value of the
accelerationStructureReference
field.
-
transformT0
Copies the specifiedVkTransformMatrixKHR
to thetransformT0
field. -
transformT0
public VkAccelerationStructureMatrixMotionInstanceNV transformT0(Consumer<VkTransformMatrixKHR> consumer) Passes thetransformT0
field to the specifiedConsumer
. -
transformT1
Copies the specifiedVkTransformMatrixKHR
to thetransformT1
field. -
transformT1
public VkAccelerationStructureMatrixMotionInstanceNV transformT1(Consumer<VkTransformMatrixKHR> consumer) Passes thetransformT1
field to the specifiedConsumer
. -
instanceCustomIndex
Sets the specified value to theinstanceCustomIndex
field. -
mask
Sets the specified value to themask
field. -
instanceShaderBindingTableRecordOffset
public VkAccelerationStructureMatrixMotionInstanceNV instanceShaderBindingTableRecordOffset(int value) Sets the specified value to theinstanceShaderBindingTableRecordOffset
field. -
flags
Sets the specified value to theflags
field. -
accelerationStructureReference
Sets the specified value to theaccelerationStructureReference
field. -
set
public VkAccelerationStructureMatrixMotionInstanceNV set(VkTransformMatrixKHR transformT0, VkTransformMatrixKHR transformT1, int instanceCustomIndex, int mask, int instanceShaderBindingTableRecordOffset, int flags, long accelerationStructureReference) Initializes this struct with the specified values. -
set
public VkAccelerationStructureMatrixMotionInstanceNV set(VkAccelerationStructureMatrixMotionInstanceNV src) Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkAccelerationStructureMatrixMotionInstanceNV
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkAccelerationStructureMatrixMotionInstanceNV
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkAccelerationStructureMatrixMotionInstanceNV
instance allocated withBufferUtils
. -
create
Returns a newVkAccelerationStructureMatrixMotionInstanceNV
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAccelerationStructureMatrixMotionInstanceNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkAccelerationStructureMatrixMotionInstanceNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkAccelerationStructureMatrixMotionInstanceNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkAccelerationStructureMatrixMotionInstanceNV.Buffer create(long address, int capacity) Create aVkAccelerationStructureMatrixMotionInstanceNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable VkAccelerationStructureMatrixMotionInstanceNV.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkAccelerationStructureMatrixMotionInstanceNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkAccelerationStructureMatrixMotionInstanceNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static VkAccelerationStructureMatrixMotionInstanceNV.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureMatrixMotionInstanceNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
public static VkAccelerationStructureMatrixMotionInstanceNV.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureMatrixMotionInstanceNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
ntransformT0
Unsafe version oftransformT0()
. -
ntransformT1
Unsafe version oftransformT1()
. -
nbitfield0
public static int nbitfield0(long struct) -
ninstanceCustomIndex
public static int ninstanceCustomIndex(long struct) Unsafe version ofinstanceCustomIndex()
. -
nmask
public static int nmask(long struct) Unsafe version ofmask()
. -
nbitfield1
public static int nbitfield1(long struct) -
ninstanceShaderBindingTableRecordOffset
public static int ninstanceShaderBindingTableRecordOffset(long struct) Unsafe version ofinstanceShaderBindingTableRecordOffset()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
naccelerationStructureReference
public static long naccelerationStructureReference(long struct) Unsafe version ofaccelerationStructureReference()
. -
ntransformT0
Unsafe version oftransformT0
. -
ntransformT1
Unsafe version oftransformT1
. -
nbitfield0
public static void nbitfield0(long struct, int value) -
ninstanceCustomIndex
public static void ninstanceCustomIndex(long struct, int value) Unsafe version ofinstanceCustomIndex
. -
nmask
public static void nmask(long struct, int value) Unsafe version ofmask
. -
nbitfield1
public static void nbitfield1(long struct, int value) -
ninstanceShaderBindingTableRecordOffset
public static void ninstanceShaderBindingTableRecordOffset(long struct, int value) Unsafe version ofinstanceShaderBindingTableRecordOffset
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
naccelerationStructureReference
public static void naccelerationStructureReference(long struct, long value) Unsafe version ofaccelerationStructureReference
.
-