Record Class VkClusterAccelerationStructureInstantiateClusterInfoNV
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkClusterAccelerationStructureInstantiateClusterInfoNV
- All Implemented Interfaces:
IPointer
,IVkClusterAccelerationStructureInstantiateClusterInfoNV
@ValueBasedCandidate
@UnsafeConstructor
public record VkClusterAccelerationStructureInstantiateClusterInfoNV(@NotNull MemorySegment segment)
extends Record
implements IVkClusterAccelerationStructureInstantiateClusterInfoNV
Represents a pointer to a VkClusterAccelerationStructureInstantiateClusterInfoNV
structure in native memory.
Structure
typedef struct VkClusterAccelerationStructureInstantiateClusterInfoNV {
uint32_t clusterIdOffset
;
uint32_t geometryIndexOffset
: 24;
uint32_t reserved : 8;
VkDeviceAddress clusterTemplateAddress
;
VkStridedDeviceAddressNV
vertexBuffer
;
} VkClusterAccelerationStructureInstantiateClusterInfoNV;
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 ofVkClusterAccelerationStructureInstantiateClusterInfoNV
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfLong
static final StructLayout
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 long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkClusterAccelerationStructureInstantiateClusterInfoNV
(@NotNull MemorySegment segment) Creates an instance of aVkClusterAccelerationStructureInstantiateClusterInfoNV
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
clusterIdOffset
(int value) long
clusterTemplateAddress
(long value) final boolean
Indicates whether some other object is "equal to" this one.int
geometryIndexOffset
(int value) final int
hashCode()
Returns a hash code value for this object.@NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.@NotNull VkStridedDeviceAddressNV
vertexBuffer
(@NotNull VkStridedDeviceAddressNV value) vertexBuffer
(Consumer<@NotNull VkStridedDeviceAddressNV> consumer)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$clusterIdOffset
-
PATH$bitfield$geometryIndexOffset$reserved
-
PATH$clusterTemplateAddress
-
PATH$vertexBuffer
-
LAYOUT$clusterIdOffset
-
LAYOUT$bitfield$geometryIndexOffset$reserved
-
LAYOUT$clusterTemplateAddress
-
LAYOUT$vertexBuffer
-
SIZE$clusterIdOffset
public static final long SIZE$clusterIdOffset -
SIZE$clusterTemplateAddress
public static final long SIZE$clusterTemplateAddress -
SIZE$vertexBuffer
public static final long SIZE$vertexBuffer -
OFFSET$clusterIdOffset
public static final long OFFSET$clusterIdOffset -
OFFSET$bitfield$geometryIndexOffset$reserved
public static final long OFFSET$bitfield$geometryIndexOffset$reserved -
OFFSET$clusterTemplateAddress
public static final long OFFSET$clusterTemplateAddress -
OFFSET$vertexBuffer
public static final long OFFSET$vertexBuffer
-
-
Constructor Details
-
VkClusterAccelerationStructureInstantiateClusterInfoNV
public VkClusterAccelerationStructureInstantiateClusterInfoNV(@NotNull @NotNull MemorySegment segment) Creates an instance of aVkClusterAccelerationStructureInstantiateClusterInfoNV
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
public static VkClusterAccelerationStructureInstantiateClusterInfoNV.Ptr allocate(Arena arena, long count) -
clone
public static VkClusterAccelerationStructureInstantiateClusterInfoNV clone(Arena arena, VkClusterAccelerationStructureInstantiateClusterInfoNV src) -
clusterIdOffset
-
clusterIdOffset
-
geometryIndexOffset
-
geometryIndexOffset
public VkClusterAccelerationStructureInstantiateClusterInfoNV geometryIndexOffset(@Unsigned int value) -
clusterTemplateAddress
-
clusterTemplateAddress
public VkClusterAccelerationStructureInstantiateClusterInfoNV clusterTemplateAddress(@NativeType("VkDeviceAddress") @Unsigned long value) -
vertexBuffer
-
vertexBuffer
public VkClusterAccelerationStructureInstantiateClusterInfoNV vertexBuffer(@NotNull @NotNull VkStridedDeviceAddressNV value) -
vertexBuffer
public VkClusterAccelerationStructureInstantiateClusterInfoNV vertexBuffer(Consumer<@NotNull VkStridedDeviceAddressNV> consumer) -
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.
-