Record Class VkClusterAccelerationStructureOpInputNV
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkClusterAccelerationStructureOpInputNV
- All Implemented Interfaces:
IPointer
,IVkClusterAccelerationStructureOpInputNV
@ValueBasedCandidate
@UnsafeConstructor
public record VkClusterAccelerationStructureOpInputNV(@NotNull MemorySegment segment)
extends Record
implements IVkClusterAccelerationStructureOpInputNV
Represents a pointer to a VkClusterAccelerationStructureOpInputNV
structure in native memory.
Structure
typedef struct VkClusterAccelerationStructureOpInputNV {
VkClusterAccelerationStructureClustersBottomLevelInputNV
* pClustersBottomLevel
;
VkClusterAccelerationStructureTriangleClusterInputNV
* pTriangleClusters
;
VkClusterAccelerationStructureMoveObjectsInputNV
* pMoveObjects
;
} VkClusterAccelerationStructureOpInputNV;
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 ofVkClusterAccelerationStructureOpInputNV
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final UnionLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkClusterAccelerationStructureOpInputNV
(@NotNull MemorySegment segment) Creates an instance of aVkClusterAccelerationStructureOpInputNV
record class. -
Method Summary
Modifier and TypeMethodDescriptionclone
(Arena arena, VkClusterAccelerationStructureOpInputNV src) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.pClustersBottomLevel
(int assumedCount) void
pMoveObjects
(int assumedCount) pMoveObjects
(@Nullable IVkClusterAccelerationStructureMoveObjectsInputNV value) void
pMoveObjectsRaw
(MemorySegment value) pTriangleClusters
(int assumedCount) pTriangleClusters
(@Nullable IVkClusterAccelerationStructureTriangleClusterInputNV value) void
@NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$pClustersBottomLevel
-
PATH$pTriangleClusters
-
PATH$pMoveObjects
-
LAYOUT$pClustersBottomLevel
-
LAYOUT$pTriangleClusters
-
LAYOUT$pMoveObjects
-
SIZE$pClustersBottomLevel
public static final long SIZE$pClustersBottomLevel -
SIZE$pTriangleClusters
public static final long SIZE$pTriangleClusters -
SIZE$pMoveObjects
public static final long SIZE$pMoveObjects -
OFFSET$pClustersBottomLevel
public static final long OFFSET$pClustersBottomLevel -
OFFSET$pTriangleClusters
public static final long OFFSET$pTriangleClusters -
OFFSET$pMoveObjects
public static final long OFFSET$pMoveObjects
-
-
Constructor Details
-
VkClusterAccelerationStructureOpInputNV
Creates an instance of aVkClusterAccelerationStructureOpInputNV
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkClusterAccelerationStructureOpInputNV clone(Arena arena, VkClusterAccelerationStructureOpInputNV src) -
pClustersBottomLevel
public VkClusterAccelerationStructureOpInputNV pClustersBottomLevel(@Nullable @Nullable IVkClusterAccelerationStructureClustersBottomLevelInputNV value) -
pClustersBottomLevel
@Unsafe @Nullable public VkClusterAccelerationStructureClustersBottomLevelInputNV.Ptr pClustersBottomLevel(int assumedCount) -
pClustersBottomLevel
@Nullable public @Nullable VkClusterAccelerationStructureClustersBottomLevelInputNV pClustersBottomLevel() -
pClustersBottomLevelRaw
@Pointer(target=VkClusterAccelerationStructureClustersBottomLevelInputNV.class) public MemorySegment pClustersBottomLevelRaw() -
pClustersBottomLevelRaw
public void pClustersBottomLevelRaw(@Pointer(target=VkClusterAccelerationStructureClustersBottomLevelInputNV.class) MemorySegment value) -
pTriangleClusters
public VkClusterAccelerationStructureOpInputNV pTriangleClusters(@Nullable @Nullable IVkClusterAccelerationStructureTriangleClusterInputNV value) -
pTriangleClusters
@Unsafe @Nullable public VkClusterAccelerationStructureTriangleClusterInputNV.Ptr pTriangleClusters(int assumedCount) -
pTriangleClusters
-
pTriangleClustersRaw
@Pointer(target=VkClusterAccelerationStructureTriangleClusterInputNV.class) public MemorySegment pTriangleClustersRaw() -
pTriangleClustersRaw
public void pTriangleClustersRaw(@Pointer(target=VkClusterAccelerationStructureTriangleClusterInputNV.class) MemorySegment value) -
pMoveObjects
public VkClusterAccelerationStructureOpInputNV pMoveObjects(@Nullable @Nullable IVkClusterAccelerationStructureMoveObjectsInputNV value) -
pMoveObjects
@Unsafe @Nullable public VkClusterAccelerationStructureMoveObjectsInputNV.Ptr pMoveObjects(int assumedCount) -
pMoveObjects
-
pMoveObjectsRaw
@Pointer(target=VkClusterAccelerationStructureMoveObjectsInputNV.class) public MemorySegment pMoveObjectsRaw() -
pMoveObjectsRaw
public void pMoveObjectsRaw(@Pointer(target=VkClusterAccelerationStructureMoveObjectsInputNV.class) MemorySegment 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.
-