Record Class VkClusterAccelerationStructureBuildTriangleClusterInfoNV
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkClusterAccelerationStructureBuildTriangleClusterInfoNV
- All Implemented Interfaces:
IPointer
,IVkClusterAccelerationStructureBuildTriangleClusterInfoNV
@ValueBasedCandidate
@UnsafeConstructor
public record VkClusterAccelerationStructureBuildTriangleClusterInfoNV(@NotNull MemorySegment segment)
extends Record
implements IVkClusterAccelerationStructureBuildTriangleClusterInfoNV
Represents a pointer to a VkClusterAccelerationStructureBuildTriangleClusterInfoNV
structure in native memory.
Structure
typedef struct VkClusterAccelerationStructureBuildTriangleClusterInfoNV {
uint32_t clusterID
;
VkClusterAccelerationStructureClusterFlagsNV
clusterFlags
; // optional
uint32_t triangleCount
: 9;
uint32_t vertexCount
: 9;
uint32_t positionTruncateBitCount
: 6;
uint32_t indexType
: 4;
uint32_t opacityMicromapIndexType
: 4;
VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV
baseGeometryIndexAndGeometryFlags
;
uint16_t indexBufferStride
;
uint16_t vertexBufferStride
;
uint16_t geometryIndexAndFlagsBufferStride
;
uint16_t opacityMicromapIndexBufferStride
;
VkDeviceAddress indexBuffer
;
VkDeviceAddress vertexBuffer
;
VkDeviceAddress geometryIndexAndFlagsBuffer
;
VkDeviceAddress opacityMicromapArray
;
VkDeviceAddress opacityMicromapIndexBuffer
;
} VkClusterAccelerationStructureBuildTriangleClusterInfoNV;
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 ofVkClusterAccelerationStructureBuildTriangleClusterInfoNV
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfLong
static final ValueLayout.OfShort
static final ValueLayout.OfLong
static final ValueLayout.OfShort
static final ValueLayout.OfLong
static final ValueLayout.OfLong
static final ValueLayout.OfShort
static final ValueLayout.OfLong
static final ValueLayout.OfShort
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
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 MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
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
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkClusterAccelerationStructureBuildTriangleClusterInfoNV
(@NotNull MemorySegment segment) Creates an instance of aVkClusterAccelerationStructureBuildTriangleClusterInfoNV
record class. -
Method Summary
Modifier and TypeMethodDescriptionbaseGeometryIndexAndGeometryFlags
(@NotNull VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV value) baseGeometryIndexAndGeometryFlags
(Consumer<@NotNull VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV> consumer) int
clusterFlags
(int value) int
clusterID
(int value) final boolean
Indicates whether some other object is "equal to" this one.long
geometryIndexAndFlagsBuffer
(long value) short
geometryIndexAndFlagsBufferStride
(short value) final int
hashCode()
Returns a hash code value for this object.long
indexBuffer
(long value) short
indexBufferStride
(short value) int
indexType
(int value) long
opacityMicromapArray
(long value) long
opacityMicromapIndexBuffer
(long value) short
opacityMicromapIndexBufferStride
(short value) int
opacityMicromapIndexType
(int value) int
positionTruncateBitCount
(int value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.int
triangleCount
(int value) long
vertexBuffer
(long value) short
vertexBufferStride
(short value) int
vertexCount
(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$clusterID
-
PATH$clusterFlags
-
PATH$bitfield$triangleCount$opacityMicromapIndexType
-
PATH$baseGeometryIndexAndGeometryFlags
-
PATH$indexBufferStride
-
PATH$vertexBufferStride
-
PATH$geometryIndexAndFlagsBufferStride
-
PATH$opacityMicromapIndexBufferStride
-
PATH$indexBuffer
-
PATH$vertexBuffer
-
PATH$geometryIndexAndFlagsBuffer
-
PATH$opacityMicromapArray
-
PATH$opacityMicromapIndexBuffer
-
LAYOUT$clusterID
-
LAYOUT$clusterFlags
-
LAYOUT$bitfield$triangleCount$opacityMicromapIndexType
-
LAYOUT$baseGeometryIndexAndGeometryFlags
-
LAYOUT$indexBufferStride
-
LAYOUT$vertexBufferStride
-
LAYOUT$geometryIndexAndFlagsBufferStride
-
LAYOUT$opacityMicromapIndexBufferStride
-
LAYOUT$indexBuffer
-
LAYOUT$vertexBuffer
-
LAYOUT$geometryIndexAndFlagsBuffer
-
LAYOUT$opacityMicromapArray
-
LAYOUT$opacityMicromapIndexBuffer
-
SIZE$clusterID
public static final long SIZE$clusterID -
SIZE$clusterFlags
public static final long SIZE$clusterFlags -
SIZE$baseGeometryIndexAndGeometryFlags
public static final long SIZE$baseGeometryIndexAndGeometryFlags -
SIZE$indexBufferStride
public static final long SIZE$indexBufferStride -
SIZE$vertexBufferStride
public static final long SIZE$vertexBufferStride -
SIZE$geometryIndexAndFlagsBufferStride
public static final long SIZE$geometryIndexAndFlagsBufferStride -
SIZE$opacityMicromapIndexBufferStride
public static final long SIZE$opacityMicromapIndexBufferStride -
SIZE$indexBuffer
public static final long SIZE$indexBuffer -
SIZE$vertexBuffer
public static final long SIZE$vertexBuffer -
SIZE$geometryIndexAndFlagsBuffer
public static final long SIZE$geometryIndexAndFlagsBuffer -
SIZE$opacityMicromapArray
public static final long SIZE$opacityMicromapArray -
SIZE$opacityMicromapIndexBuffer
public static final long SIZE$opacityMicromapIndexBuffer -
OFFSET$clusterID
public static final long OFFSET$clusterID -
OFFSET$clusterFlags
public static final long OFFSET$clusterFlags -
OFFSET$bitfield$triangleCount$opacityMicromapIndexType
public static final long OFFSET$bitfield$triangleCount$opacityMicromapIndexType -
OFFSET$baseGeometryIndexAndGeometryFlags
public static final long OFFSET$baseGeometryIndexAndGeometryFlags -
OFFSET$indexBufferStride
public static final long OFFSET$indexBufferStride -
OFFSET$vertexBufferStride
public static final long OFFSET$vertexBufferStride -
OFFSET$geometryIndexAndFlagsBufferStride
public static final long OFFSET$geometryIndexAndFlagsBufferStride -
OFFSET$opacityMicromapIndexBufferStride
public static final long OFFSET$opacityMicromapIndexBufferStride -
OFFSET$indexBuffer
public static final long OFFSET$indexBuffer -
OFFSET$vertexBuffer
public static final long OFFSET$vertexBuffer -
OFFSET$geometryIndexAndFlagsBuffer
public static final long OFFSET$geometryIndexAndFlagsBuffer -
OFFSET$opacityMicromapArray
public static final long OFFSET$opacityMicromapArray -
OFFSET$opacityMicromapIndexBuffer
public static final long OFFSET$opacityMicromapIndexBuffer
-
-
Constructor Details
-
VkClusterAccelerationStructureBuildTriangleClusterInfoNV
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV(@NotNull @NotNull MemorySegment segment) Creates an instance of aVkClusterAccelerationStructureBuildTriangleClusterInfoNV
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
public static VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Ptr allocate(Arena arena, long count) -
clone
public static VkClusterAccelerationStructureBuildTriangleClusterInfoNV clone(Arena arena, VkClusterAccelerationStructureBuildTriangleClusterInfoNV src) -
clusterID
-
clusterID
-
clusterFlags
-
clusterFlags
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV clusterFlags(@EnumType(VkClusterAccelerationStructureClusterFlagsNV.class) int value) -
triangleCount
-
triangleCount
-
vertexCount
-
vertexCount
-
positionTruncateBitCount
-
positionTruncateBitCount
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV positionTruncateBitCount(@Unsigned int value) -
indexType
-
indexType
-
opacityMicromapIndexType
-
opacityMicromapIndexType
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV opacityMicromapIndexType(@Unsigned int value) -
baseGeometryIndexAndGeometryFlags
@NotNull public @NotNull VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV baseGeometryIndexAndGeometryFlags() -
baseGeometryIndexAndGeometryFlags
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV baseGeometryIndexAndGeometryFlags(@NotNull @NotNull VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV value) -
baseGeometryIndexAndGeometryFlags
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV baseGeometryIndexAndGeometryFlags(Consumer<@NotNull VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV> consumer) -
indexBufferStride
-
indexBufferStride
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV indexBufferStride(@Unsigned short value) -
vertexBufferStride
-
vertexBufferStride
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV vertexBufferStride(@Unsigned short value) -
geometryIndexAndFlagsBufferStride
-
geometryIndexAndFlagsBufferStride
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV geometryIndexAndFlagsBufferStride(@Unsigned short value) -
opacityMicromapIndexBufferStride
-
opacityMicromapIndexBufferStride
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV opacityMicromapIndexBufferStride(@Unsigned short value) -
indexBuffer
-
indexBuffer
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV indexBuffer(@NativeType("VkDeviceAddress") @Unsigned long value) -
vertexBuffer
-
vertexBuffer
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV vertexBuffer(@NativeType("VkDeviceAddress") @Unsigned long value) -
geometryIndexAndFlagsBuffer
-
geometryIndexAndFlagsBuffer
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV geometryIndexAndFlagsBuffer(@NativeType("VkDeviceAddress") @Unsigned long value) -
opacityMicromapArray
-
opacityMicromapArray
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV opacityMicromapArray(@NativeType("VkDeviceAddress") @Unsigned long value) -
opacityMicromapIndexBuffer
-
opacityMicromapIndexBuffer
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV opacityMicromapIndexBuffer(@NativeType("VkDeviceAddress") @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.
-