Package org.lwjgl.vulkan
Class VkAccelerationStructureMotionInstanceDataNV
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkAccelerationStructureMotionInstanceDataNV>
org.lwjgl.vulkan.VkAccelerationStructureMotionInstanceDataNV
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkAccelerationStructureMotionInstanceDataNV
extends Struct<VkAccelerationStructureMotionInstanceDataNV>
implements NativeResource
union VkAccelerationStructureMotionInstanceDataNV {
{@link VkAccelerationStructureInstanceKHR VkAccelerationStructureInstanceKHR} staticInstance;
{@link VkAccelerationStructureMatrixMotionInstanceNV VkAccelerationStructureMatrixMotionInstanceNV} matrixMotionInstance;
{@link VkAccelerationStructureSRTMotionInstanceNV VkAccelerationStructureSRTMotionInstanceNV} srtMotionInstance;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofVkAccelerationStructureMotionInstanceDataNV
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 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 aVkAccelerationStructureMotionInstanceDataNV
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newVkAccelerationStructureMotionInstanceDataNV
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkAccelerationStructureMotionInstanceDataNV.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newVkAccelerationStructureMotionInstanceDataNV
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkAccelerationStructureMotionInstanceDataNV.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newVkAccelerationStructureMotionInstanceDataNV
instance for the specified memory address.create
(long address, int capacity) Create aVkAccelerationStructureMotionInstanceDataNV.Buffer
instance at the specified memory.static @Nullable VkAccelerationStructureMotionInstanceDataNV
createSafe
(long address) static @Nullable VkAccelerationStructureMotionInstanceDataNV.Buffer
createSafe
(long address, int capacity) malloc()
Returns a newVkAccelerationStructureMotionInstanceDataNV
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkAccelerationStructureMotionInstanceDataNV.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNV.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNV
instance allocated on the specifiedMemoryStack
.Passes thematrixMotionInstance
field to the specifiedConsumer
.Copies the specifiedVkAccelerationStructureMatrixMotionInstanceNV
to thematrixMotionInstance
field.nmatrixMotionInstance
(long struct) Unsafe version ofmatrixMotionInstance()
.static void
nmatrixMotionInstance
(long struct, VkAccelerationStructureMatrixMotionInstanceNV value) Unsafe version ofmatrixMotionInstance
.nsrtMotionInstance
(long struct) Unsafe version ofsrtMotionInstance()
.static void
nsrtMotionInstance
(long struct, VkAccelerationStructureSRTMotionInstanceNV value) Unsafe version ofsrtMotionInstance
.nstaticInstance
(long struct) Unsafe version ofstaticInstance()
.static void
nstaticInstance
(long struct, VkAccelerationStructureInstanceKHR value) Unsafe version ofstaticInstance
.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Passes thesrtMotionInstance
field to the specifiedConsumer
.Copies the specifiedVkAccelerationStructureSRTMotionInstanceNV
to thesrtMotionInstance
field.Passes thestaticInstance
field to the specifiedConsumer
.Copies the specifiedVkAccelerationStructureInstanceKHR
to thestaticInstance
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. -
STATICINSTANCE
public static final int STATICINSTANCEThe struct member offsets. -
MATRIXMOTIONINSTANCE
public static final int MATRIXMOTIONINSTANCEThe struct member offsets. -
SRTMOTIONINSTANCE
public static final int SRTMOTIONINSTANCEThe struct member offsets.
-
-
Constructor Details
-
VkAccelerationStructureMotionInstanceDataNV
Creates aVkAccelerationStructureMotionInstanceDataNV
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<VkAccelerationStructureMotionInstanceDataNV>
-
staticInstance
- Returns:
- a
VkAccelerationStructureInstanceKHR
view of thestaticInstance
field.
-
matrixMotionInstance
- Returns:
- a
VkAccelerationStructureMatrixMotionInstanceNV
view of thematrixMotionInstance
field.
-
srtMotionInstance
- Returns:
- a
VkAccelerationStructureSRTMotionInstanceNV
view of thesrtMotionInstance
field.
-
staticInstance
public VkAccelerationStructureMotionInstanceDataNV staticInstance(VkAccelerationStructureInstanceKHR value) Copies the specifiedVkAccelerationStructureInstanceKHR
to thestaticInstance
field. -
staticInstance
public VkAccelerationStructureMotionInstanceDataNV staticInstance(Consumer<VkAccelerationStructureInstanceKHR> consumer) Passes thestaticInstance
field to the specifiedConsumer
. -
matrixMotionInstance
public VkAccelerationStructureMotionInstanceDataNV matrixMotionInstance(VkAccelerationStructureMatrixMotionInstanceNV value) Copies the specifiedVkAccelerationStructureMatrixMotionInstanceNV
to thematrixMotionInstance
field. -
matrixMotionInstance
public VkAccelerationStructureMotionInstanceDataNV matrixMotionInstance(Consumer<VkAccelerationStructureMatrixMotionInstanceNV> consumer) Passes thematrixMotionInstance
field to the specifiedConsumer
. -
srtMotionInstance
public VkAccelerationStructureMotionInstanceDataNV srtMotionInstance(VkAccelerationStructureSRTMotionInstanceNV value) Copies the specifiedVkAccelerationStructureSRTMotionInstanceNV
to thesrtMotionInstance
field. -
srtMotionInstance
public VkAccelerationStructureMotionInstanceDataNV srtMotionInstance(Consumer<VkAccelerationStructureSRTMotionInstanceNV> consumer) Passes thesrtMotionInstance
field to the specifiedConsumer
. -
set
public VkAccelerationStructureMotionInstanceDataNV set(VkAccelerationStructureMotionInstanceDataNV src) Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkAccelerationStructureMotionInstanceDataNV
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkAccelerationStructureMotionInstanceDataNV
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkAccelerationStructureMotionInstanceDataNV
instance allocated withBufferUtils
. -
create
Returns a newVkAccelerationStructureMotionInstanceDataNV
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAccelerationStructureMotionInstanceDataNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkAccelerationStructureMotionInstanceDataNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkAccelerationStructureMotionInstanceDataNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkAccelerationStructureMotionInstanceDataNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable VkAccelerationStructureMotionInstanceDataNV.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkAccelerationStructureMotionInstanceDataNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkAccelerationStructureMotionInstanceDataNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
public static VkAccelerationStructureMotionInstanceDataNV.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
public static VkAccelerationStructureMotionInstanceDataNV.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nstaticInstance
Unsafe version ofstaticInstance()
. -
nmatrixMotionInstance
Unsafe version ofmatrixMotionInstance()
. -
nsrtMotionInstance
Unsafe version ofsrtMotionInstance()
. -
nstaticInstance
Unsafe version ofstaticInstance
. -
nmatrixMotionInstance
public static void nmatrixMotionInstance(long struct, VkAccelerationStructureMatrixMotionInstanceNV value) Unsafe version ofmatrixMotionInstance
. -
nsrtMotionInstance
public static void nsrtMotionInstance(long struct, VkAccelerationStructureSRTMotionInstanceNV value) Unsafe version ofsrtMotionInstance
.
-