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,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkAccelerationStructureMotionInstanceDataNV
extends org.lwjgl.system.Struct<VkAccelerationStructureMotionInstanceDataNV>
implements org.lwjgl.system.NativeResource
Union specifying an acceleration structure motion instance data for building into an acceleration structure geometry.
See Also
VkAccelerationStructureInstanceKHR, VkAccelerationStructureMatrixMotionInstanceNV, VkAccelerationStructureMotionInstanceNV, VkAccelerationStructureSRTMotionInstanceNV
Layout
union VkAccelerationStructureMotionInstanceDataNV {
VkAccelerationStructureInstanceKHR staticInstance();
VkAccelerationStructureMatrixMotionInstanceNV matrixMotionInstance();
VkAccelerationStructureSRTMotionInstanceNV srtMotionInstance();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkAccelerationStructureMotionInstanceDataNVstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.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 aVkAccelerationStructureMotionInstanceDataNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkAccelerationStructureMotionInstanceDataNVinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkAccelerationStructureMotionInstanceDataNV.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkAccelerationStructureMotionInstanceDataNVinstance allocated withBufferUtils.create(int capacity) Returns a newVkAccelerationStructureMotionInstanceDataNV.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkAccelerationStructureMotionInstanceDataNVinstance for the specified memory address.create(long address, int capacity) Create aVkAccelerationStructureMotionInstanceDataNV.Bufferinstance at the specified memory.static @Nullable VkAccelerationStructureMotionInstanceDataNVcreateSafe(long address) static @Nullable VkAccelerationStructureMotionInstanceDataNV.BuffercreateSafe(long address, int capacity) malloc()Returns a newVkAccelerationStructureMotionInstanceDataNVinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkAccelerationStructureMotionInstanceDataNV.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNV.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNVinstance allocated on the specifiedMemoryStack.aVkAccelerationStructureMatrixMotionInstanceNVstructure containing data for a matrix motion instance.Passes thematrixMotionInstance()field to the specifiedConsumer.Copies the specifiedVkAccelerationStructureMatrixMotionInstanceNVto thematrixMotionInstance()field.nmatrixMotionInstance(long struct) Unsafe version ofmatrixMotionInstance().static voidnmatrixMotionInstance(long struct, VkAccelerationStructureMatrixMotionInstanceNV value) Unsafe version ofmatrixMotionInstance.nsrtMotionInstance(long struct) Unsafe version ofsrtMotionInstance().static voidnsrtMotionInstance(long struct, VkAccelerationStructureSRTMotionInstanceNV value) Unsafe version ofsrtMotionInstance.nstaticInstance(long struct) Unsafe version ofstaticInstance().static voidnstaticInstance(long struct, VkAccelerationStructureInstanceKHR value) Unsafe version ofstaticInstance.Copies the specified struct data to this struct.intsizeof()aVkAccelerationStructureSRTMotionInstanceNVstructure containing data for an SRT motion instance.Passes thesrtMotionInstance()field to the specifiedConsumer.Copies the specifiedVkAccelerationStructureSRTMotionInstanceNVto thesrtMotionInstance()field.aVkAccelerationStructureInstanceKHRstructure containing data for a static instance.Passes thestaticInstance()field to the specifiedConsumer.Copies the specifiedVkAccelerationStructureInstanceKHRto thestaticInstance()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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. -
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 aVkAccelerationStructureMotionInstanceDataNVinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkAccelerationStructureMotionInstanceDataNV>
-
staticInstance
aVkAccelerationStructureInstanceKHRstructure containing data for a static instance. -
matrixMotionInstance
aVkAccelerationStructureMatrixMotionInstanceNVstructure containing data for a matrix motion instance. -
srtMotionInstance
aVkAccelerationStructureSRTMotionInstanceNVstructure containing data for an SRT motion instance. -
staticInstance
public VkAccelerationStructureMotionInstanceDataNV staticInstance(VkAccelerationStructureInstanceKHR value) Copies the specifiedVkAccelerationStructureInstanceKHRto thestaticInstance()field. -
staticInstance
public VkAccelerationStructureMotionInstanceDataNV staticInstance(Consumer<VkAccelerationStructureInstanceKHR> consumer) Passes thestaticInstance()field to the specifiedConsumer. -
matrixMotionInstance
public VkAccelerationStructureMotionInstanceDataNV matrixMotionInstance(VkAccelerationStructureMatrixMotionInstanceNV value) Copies the specifiedVkAccelerationStructureMatrixMotionInstanceNVto thematrixMotionInstance()field. -
matrixMotionInstance
public VkAccelerationStructureMotionInstanceDataNV matrixMotionInstance(Consumer<VkAccelerationStructureMatrixMotionInstanceNV> consumer) Passes thematrixMotionInstance()field to the specifiedConsumer. -
srtMotionInstance
public VkAccelerationStructureMotionInstanceDataNV srtMotionInstance(VkAccelerationStructureSRTMotionInstanceNV value) Copies the specifiedVkAccelerationStructureSRTMotionInstanceNVto 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 newVkAccelerationStructureMotionInstanceDataNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkAccelerationStructureMotionInstanceDataNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkAccelerationStructureMotionInstanceDataNVinstance allocated withBufferUtils. -
create
Returns a newVkAccelerationStructureMotionInstanceDataNVinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAccelerationStructureMotionInstanceDataNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkAccelerationStructureMotionInstanceDataNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkAccelerationStructureMotionInstanceDataNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkAccelerationStructureMotionInstanceDataNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkAccelerationStructureMotionInstanceDataNV.Buffer createSafe(long address, int capacity) -
malloc
public static VkAccelerationStructureMotionInstanceDataNV malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAccelerationStructureMotionInstanceDataNV calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAccelerationStructureMotionInstanceDataNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkAccelerationStructureMotionInstanceDataNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkAccelerationStructureMotionInstanceDataNV.Bufferinstance allocated on the specifiedMemoryStackand 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.
-