Record Class VkAccelerationStructureSRTMotionInstanceNV
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkAccelerationStructureSRTMotionInstanceNV
- All Implemented Interfaces:
IPointer
,IVkAccelerationStructureSRTMotionInstanceNV
@ValueBasedCandidate
@UnsafeConstructor
public record VkAccelerationStructureSRTMotionInstanceNV(@NotNull MemorySegment segment)
extends Record
implements IVkAccelerationStructureSRTMotionInstanceNV
Represents a pointer to a VkAccelerationStructureSRTMotionInstanceNV
structure in native memory.
Structure
typedef struct VkAccelerationStructureSRTMotionInstanceNV {
VkSRTDataNV
transformT0
;
VkSRTDataNV
transformT1
;
uint32_t instanceCustomIndex
: 24;
uint32_t mask
: 8;
uint32_t instanceShaderBindingTableRecordOffset
: 24;
uint32_t flags
: 8;
uint64_t accelerationStructureReference
;
} VkAccelerationStructureSRTMotionInstanceNV;
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array ofVkAccelerationStructureSRTMotionInstanceNV
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfLong
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final StructLayout
static final StructLayout
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkAccelerationStructureSRTMotionInstanceNV
(@NotNull MemorySegment segment) Creates an instance of aVkAccelerationStructureSRTMotionInstanceNV
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
accelerationStructureReference
(long value) clone
(Arena arena, VkAccelerationStructureSRTMotionInstanceNV src) final boolean
Indicates whether some other object is "equal to" this one.int
flags()
flags
(int value) final int
hashCode()
Returns a hash code value for this object.int
instanceCustomIndex
(int value) int
instanceShaderBindingTableRecordOffset
(int value) int
mask()
mask
(int value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.@NotNull VkSRTDataNV
transformT0
(@NotNull VkSRTDataNV value) transformT0
(Consumer<@NotNull VkSRTDataNV> consumer) @NotNull VkSRTDataNV
transformT1
(@NotNull VkSRTDataNV value) transformT1
(Consumer<@NotNull VkSRTDataNV> consumer)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$transformT0
-
PATH$transformT1
-
PATH$bitfield$instanceCustomIndex$mask
-
PATH$bitfield$instanceShaderBindingTableRecordOffset$flags
public static final MemoryLayout.PathElement PATH$bitfield$instanceShaderBindingTableRecordOffset$flags -
PATH$accelerationStructureReference
-
LAYOUT$transformT0
-
LAYOUT$transformT1
-
LAYOUT$bitfield$instanceCustomIndex$mask
-
LAYOUT$bitfield$instanceShaderBindingTableRecordOffset$flags
-
LAYOUT$accelerationStructureReference
-
SIZE$transformT0
public static final long SIZE$transformT0 -
SIZE$transformT1
public static final long SIZE$transformT1 -
SIZE$accelerationStructureReference
public static final long SIZE$accelerationStructureReference -
OFFSET$transformT0
public static final long OFFSET$transformT0 -
OFFSET$transformT1
public static final long OFFSET$transformT1 -
OFFSET$bitfield$instanceCustomIndex$mask
public static final long OFFSET$bitfield$instanceCustomIndex$mask -
OFFSET$bitfield$instanceShaderBindingTableRecordOffset$flags
public static final long OFFSET$bitfield$instanceShaderBindingTableRecordOffset$flags -
OFFSET$accelerationStructureReference
public static final long OFFSET$accelerationStructureReference
-
-
Constructor Details
-
VkAccelerationStructureSRTMotionInstanceNV
Creates an instance of aVkAccelerationStructureSRTMotionInstanceNV
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkAccelerationStructureSRTMotionInstanceNV clone(Arena arena, VkAccelerationStructureSRTMotionInstanceNV src) -
transformT0
-
transformT0
-
transformT0
public VkAccelerationStructureSRTMotionInstanceNV transformT0(Consumer<@NotNull VkSRTDataNV> consumer) -
transformT1
-
transformT1
-
transformT1
public VkAccelerationStructureSRTMotionInstanceNV transformT1(Consumer<@NotNull VkSRTDataNV> consumer) -
instanceCustomIndex
-
instanceCustomIndex
-
mask
-
mask
-
instanceShaderBindingTableRecordOffset
-
instanceShaderBindingTableRecordOffset
public VkAccelerationStructureSRTMotionInstanceNV instanceShaderBindingTableRecordOffset(@Unsigned int value) -
flags
-
flags
-
accelerationStructureReference
-
accelerationStructureReference
public VkAccelerationStructureSRTMotionInstanceNV accelerationStructureReference(@Unsigned long value) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-