Package org.lwjgl.vulkan
Class VkAccelerationStructureSRTMotionInstanceNV
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkAccelerationStructureSRTMotionInstanceNV>
org.lwjgl.vulkan.VkAccelerationStructureSRTMotionInstanceNV
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkAccelerationStructureSRTMotionInstanceNV
extends Struct<VkAccelerationStructureSRTMotionInstanceNV>
implements NativeResource
struct VkAccelerationStructureSRTMotionInstanceNV {
VkSRTDataNV transformT0;
VkSRTDataNV 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 classAn array ofVkAccelerationStructureSRTMotionInstanceNVstructs.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 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 aVkAccelerationStructureSRTMotionInstanceNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongaccelerationStructureReference(long value) Sets the specified value to theaccelerationStructureReferencefield.calloc()Returns a newVkAccelerationStructureSRTMotionInstanceNVinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkAccelerationStructureSRTMotionInstanceNV.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureSRTMotionInstanceNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkAccelerationStructureSRTMotionInstanceNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkAccelerationStructureSRTMotionInstanceNVinstance allocated withBufferUtils.create(int capacity) Returns a newVkAccelerationStructureSRTMotionInstanceNV.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkAccelerationStructureSRTMotionInstanceNVinstance for the specified memory address.create(long address, int capacity) Create aVkAccelerationStructureSRTMotionInstanceNV.Bufferinstance at the specified memory.static @Nullable VkAccelerationStructureSRTMotionInstanceNVcreateSafe(long address) static @Nullable VkAccelerationStructureSRTMotionInstanceNV.BuffercreateSafe(long address, int capacity) intflags()flags(int value) Sets the specified value to theflagsfield.intinstanceCustomIndex(int value) Sets the specified value to theinstanceCustomIndexfield.intinstanceShaderBindingTableRecordOffset(int value) Sets the specified value to theinstanceShaderBindingTableRecordOffsetfield.malloc()Returns a newVkAccelerationStructureSRTMotionInstanceNVinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkAccelerationStructureSRTMotionInstanceNV.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureSRTMotionInstanceNV.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkAccelerationStructureSRTMotionInstanceNVinstance allocated on the specifiedMemoryStack.intmask()mask(int value) Sets the specified value to themaskfield.static longnaccelerationStructureReference(long struct) Unsafe version ofaccelerationStructureReference().static voidnaccelerationStructureReference(long struct, long value) Unsafe version ofaccelerationStructureReference.static intnbitfield0(long struct) static voidnbitfield0(long struct, int value) static intnbitfield1(long struct) static voidnbitfield1(long struct, int value) static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static intninstanceCustomIndex(long struct) Unsafe version ofinstanceCustomIndex().static voidninstanceCustomIndex(long struct, int value) Unsafe version ofinstanceCustomIndex.static intninstanceShaderBindingTableRecordOffset(long struct) Unsafe version ofinstanceShaderBindingTableRecordOffset().static voidninstanceShaderBindingTableRecordOffset(long struct, int value) Unsafe version ofinstanceShaderBindingTableRecordOffset.static intnmask(long struct) Unsafe version ofmask().static voidnmask(long struct, int value) Unsafe version ofmask.static VkSRTDataNVntransformT0(long struct) Unsafe version oftransformT0().static voidntransformT0(long struct, VkSRTDataNV value) Unsafe version oftransformT0.static VkSRTDataNVntransformT1(long struct) Unsafe version oftransformT1().static voidntransformT1(long struct, VkSRTDataNV value) Unsafe version oftransformT1.Copies the specified struct data to this struct.set(VkSRTDataNV transformT0, VkSRTDataNV transformT1, int instanceCustomIndex, int mask, int instanceShaderBindingTableRecordOffset, int flags, long accelerationStructureReference) Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).transformT0(Consumer<VkSRTDataNV> consumer) Passes thetransformT0field to the specifiedConsumer.transformT0(VkSRTDataNV value) Copies the specifiedVkSRTDataNVto thetransformT0field.transformT1(Consumer<VkSRTDataNV> consumer) Passes thetransformT1field to the specifiedConsumer.transformT1(VkSRTDataNV value) Copies the specifiedVkSRTDataNVto thetransformT1field.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. -
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
-
VkAccelerationStructureSRTMotionInstanceNV
Creates aVkAccelerationStructureSRTMotionInstanceNVinstance 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<VkAccelerationStructureSRTMotionInstanceNV>
-
transformT0
- Returns:
- a
VkSRTDataNVview of thetransformT0field.
-
transformT1
- Returns:
- a
VkSRTDataNVview of thetransformT1field.
-
instanceCustomIndex
public int instanceCustomIndex()- Returns:
- the value of the
instanceCustomIndexfield.
-
mask
public int mask()- Returns:
- the value of the
maskfield.
-
instanceShaderBindingTableRecordOffset
public int instanceShaderBindingTableRecordOffset()- Returns:
- the value of the
instanceShaderBindingTableRecordOffsetfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
accelerationStructureReference
public long accelerationStructureReference()- Returns:
- the value of the
accelerationStructureReferencefield.
-
transformT0
Copies the specifiedVkSRTDataNVto thetransformT0field. -
transformT0
Passes thetransformT0field to the specifiedConsumer. -
transformT1
Copies the specifiedVkSRTDataNVto thetransformT1field. -
transformT1
Passes thetransformT1field to the specifiedConsumer. -
instanceCustomIndex
Sets the specified value to theinstanceCustomIndexfield. -
mask
Sets the specified value to themaskfield. -
instanceShaderBindingTableRecordOffset
Sets the specified value to theinstanceShaderBindingTableRecordOffsetfield. -
flags
Sets the specified value to theflagsfield. -
accelerationStructureReference
Sets the specified value to theaccelerationStructureReferencefield. -
set
public VkAccelerationStructureSRTMotionInstanceNV set(VkSRTDataNV transformT0, VkSRTDataNV transformT1, int instanceCustomIndex, int mask, int instanceShaderBindingTableRecordOffset, int flags, long accelerationStructureReference) Initializes this struct with the specified values. -
set
public VkAccelerationStructureSRTMotionInstanceNV set(VkAccelerationStructureSRTMotionInstanceNV src) Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkAccelerationStructureSRTMotionInstanceNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkAccelerationStructureSRTMotionInstanceNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkAccelerationStructureSRTMotionInstanceNVinstance allocated withBufferUtils. -
create
Returns a newVkAccelerationStructureSRTMotionInstanceNVinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAccelerationStructureSRTMotionInstanceNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkAccelerationStructureSRTMotionInstanceNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkAccelerationStructureSRTMotionInstanceNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkAccelerationStructureSRTMotionInstanceNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkAccelerationStructureSRTMotionInstanceNV.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkAccelerationStructureSRTMotionInstanceNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkAccelerationStructureSRTMotionInstanceNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAccelerationStructureSRTMotionInstanceNV.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureSRTMotionInstanceNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkAccelerationStructureSRTMotionInstanceNV.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkAccelerationStructureSRTMotionInstanceNV.Bufferinstance allocated on the specifiedMemoryStackand 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.
-