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 recordRepresents a pointer to / an array ofVkClusterAccelerationStructureInstantiateClusterInfoNVstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfLongstatic final StructLayoutstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkClusterAccelerationStructureInstantiateClusterInfoNV(@NotNull MemorySegment segment) Creates an instance of aVkClusterAccelerationStructureInstantiateClusterInfoNVrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintclusterIdOffset(int value) longclusterTemplateAddress(long value) final booleanIndicates whether some other object is "equal to" this one.intgeometryIndexOffset(int value) final inthashCode()Returns a hash code value for this object.@NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.@NotNull VkStridedDeviceAddressNVvertexBuffer(@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 aVkClusterAccelerationStructureInstantiateClusterInfoNVrecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-