Record Class VkAccelerationStructureTrianglesDisplacementMicromapNV
- All Implemented Interfaces:
IPointer
,IVkAccelerationStructureTrianglesDisplacementMicromapNV
Represents a pointer to a VkAccelerationStructureTrianglesDisplacementMicromapNV
structure in native memory.
Structure
typedef struct VkAccelerationStructureTrianglesDisplacementMicromapNV {
VkStructureType
sType
;
void* pNext
; // optional
VkFormat
displacementBiasAndScaleFormat
;
VkFormat
displacementVectorFormat
;
VkDeviceOrHostAddressConstKHR
displacementBiasAndScaleBuffer
;
VkDeviceSize displacementBiasAndScaleStride
;
VkDeviceOrHostAddressConstKHR
displacementVectorBuffer
;
VkDeviceSize displacementVectorStride
;
VkDeviceOrHostAddressConstKHR
displacedMicromapPrimitiveFlags
;
VkDeviceSize displacedMicromapPrimitiveFlagsStride
;
VkIndexType
indexType
;
VkDeviceOrHostAddressConstKHR
indexBuffer
;
VkDeviceSize indexStride
;
uint32_t baseTriangle
;
uint32_t usageCountsCount
; // optional
VkMicromapUsageEXT
const* pUsageCounts
; // optional
VkMicromapUsageEXT
const* const* ppUsageCounts
;
VkMicromapEXT
micromap
; // optional
} VkAccelerationStructureTrianglesDisplacementMicromapNV;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_TRIANGLES_DISPLACEMENT_MICROMAP_NV
The allocate
(allocate(Arena)
, allocate(Arena, long)
)
functions will automatically initialize these fields. Also, you may call autoInit()
to initialize these fields manually for non-allocated instances.
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 ofVkAccelerationStructureTrianglesDisplacementMicromapNV
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final UnionLayout
static final ValueLayout.OfLong
static final UnionLayout
static final ValueLayout.OfInt
static final ValueLayout.OfLong
static final UnionLayout
static final ValueLayout.OfInt
static final ValueLayout.OfLong
static final UnionLayout
static final ValueLayout.OfLong
static final ValueLayout.OfInt
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
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 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 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
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkAccelerationStructureTrianglesDisplacementMicromapNV
(@NotNull MemorySegment segment) Creates an instance of aVkAccelerationStructureTrianglesDisplacementMicromapNV
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
autoInit()
int
baseTriangle
(int value) @NotNull VkDeviceOrHostAddressConstKHR
displacedMicromapPrimitiveFlags
(@NotNull VkDeviceOrHostAddressConstKHR value) displacedMicromapPrimitiveFlags
(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) long
displacedMicromapPrimitiveFlagsStride
(long value) @NotNull VkDeviceOrHostAddressConstKHR
displacementBiasAndScaleBuffer
(@NotNull VkDeviceOrHostAddressConstKHR value) displacementBiasAndScaleBuffer
(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) int
displacementBiasAndScaleFormat
(int value) long
displacementBiasAndScaleStride
(long value) @NotNull VkDeviceOrHostAddressConstKHR
displacementVectorBuffer
(@NotNull VkDeviceOrHostAddressConstKHR value) displacementVectorBuffer
(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) int
displacementVectorFormat
(int value) long
displacementVectorStride
(long value) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull VkDeviceOrHostAddressConstKHR
indexBuffer
(@NotNull VkDeviceOrHostAddressConstKHR value) indexBuffer
(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) long
indexStride
(long value) int
indexType
(int value) @Nullable VkMicromapEXT
micromap()
micromap
(@Nullable VkMicromapEXT value) pNext()
void
pNext
(MemorySegment value) @Nullable PointerPtr
Note: the returnedPointerPtr
does not have correctPointerPtr.size()
property.ppUsageCounts
(@Nullable PointerPtr value) void
ppUsageCountsRaw
(MemorySegment value) @Nullable VkMicromapUsageEXT
pUsageCounts
(int assumedCount) pUsageCounts
(@Nullable IVkMicromapUsageEXT value) void
pUsageCountsRaw
(MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.int
sType()
sType
(int value) final String
toString()
Returns a string representation of this record class.int
usageCountsCount
(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$displacementBiasAndScaleFormat
-
PATH$displacementVectorFormat
-
PATH$displacementBiasAndScaleBuffer
-
PATH$displacementBiasAndScaleStride
-
PATH$displacementVectorBuffer
-
PATH$displacementVectorStride
-
PATH$displacedMicromapPrimitiveFlags
-
PATH$displacedMicromapPrimitiveFlagsStride
-
PATH$indexType
-
PATH$indexBuffer
-
PATH$indexStride
-
PATH$baseTriangle
-
PATH$usageCountsCount
-
PATH$pUsageCounts
-
PATH$ppUsageCounts
-
PATH$micromap
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$displacementBiasAndScaleFormat
-
LAYOUT$displacementVectorFormat
-
LAYOUT$displacementBiasAndScaleBuffer
-
LAYOUT$displacementBiasAndScaleStride
-
LAYOUT$displacementVectorBuffer
-
LAYOUT$displacementVectorStride
-
LAYOUT$displacedMicromapPrimitiveFlags
-
LAYOUT$displacedMicromapPrimitiveFlagsStride
-
LAYOUT$indexType
-
LAYOUT$indexBuffer
-
LAYOUT$indexStride
-
LAYOUT$baseTriangle
-
LAYOUT$usageCountsCount
-
LAYOUT$pUsageCounts
-
LAYOUT$ppUsageCounts
-
LAYOUT$micromap
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$displacementBiasAndScaleFormat
public static final long SIZE$displacementBiasAndScaleFormat -
SIZE$displacementVectorFormat
public static final long SIZE$displacementVectorFormat -
SIZE$displacementBiasAndScaleBuffer
public static final long SIZE$displacementBiasAndScaleBuffer -
SIZE$displacementBiasAndScaleStride
public static final long SIZE$displacementBiasAndScaleStride -
SIZE$displacementVectorBuffer
public static final long SIZE$displacementVectorBuffer -
SIZE$displacementVectorStride
public static final long SIZE$displacementVectorStride -
SIZE$displacedMicromapPrimitiveFlags
public static final long SIZE$displacedMicromapPrimitiveFlags -
SIZE$displacedMicromapPrimitiveFlagsStride
public static final long SIZE$displacedMicromapPrimitiveFlagsStride -
SIZE$indexType
public static final long SIZE$indexType -
SIZE$indexBuffer
public static final long SIZE$indexBuffer -
SIZE$indexStride
public static final long SIZE$indexStride -
SIZE$baseTriangle
public static final long SIZE$baseTriangle -
SIZE$usageCountsCount
public static final long SIZE$usageCountsCount -
SIZE$pUsageCounts
public static final long SIZE$pUsageCounts -
SIZE$ppUsageCounts
public static final long SIZE$ppUsageCounts -
SIZE$micromap
public static final long SIZE$micromap -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$displacementBiasAndScaleFormat
public static final long OFFSET$displacementBiasAndScaleFormat -
OFFSET$displacementVectorFormat
public static final long OFFSET$displacementVectorFormat -
OFFSET$displacementBiasAndScaleBuffer
public static final long OFFSET$displacementBiasAndScaleBuffer -
OFFSET$displacementBiasAndScaleStride
public static final long OFFSET$displacementBiasAndScaleStride -
OFFSET$displacementVectorBuffer
public static final long OFFSET$displacementVectorBuffer -
OFFSET$displacementVectorStride
public static final long OFFSET$displacementVectorStride -
OFFSET$displacedMicromapPrimitiveFlags
public static final long OFFSET$displacedMicromapPrimitiveFlags -
OFFSET$displacedMicromapPrimitiveFlagsStride
public static final long OFFSET$displacedMicromapPrimitiveFlagsStride -
OFFSET$indexType
public static final long OFFSET$indexType -
OFFSET$indexBuffer
public static final long OFFSET$indexBuffer -
OFFSET$indexStride
public static final long OFFSET$indexStride -
OFFSET$baseTriangle
public static final long OFFSET$baseTriangle -
OFFSET$usageCountsCount
public static final long OFFSET$usageCountsCount -
OFFSET$pUsageCounts
public static final long OFFSET$pUsageCounts -
OFFSET$ppUsageCounts
public static final long OFFSET$ppUsageCounts -
OFFSET$micromap
public static final long OFFSET$micromap
-
-
Constructor Details
-
VkAccelerationStructureTrianglesDisplacementMicromapNV
public VkAccelerationStructureTrianglesDisplacementMicromapNV(@NotNull @NotNull MemorySegment segment) Creates an instance of aVkAccelerationStructureTrianglesDisplacementMicromapNV
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
public static VkAccelerationStructureTrianglesDisplacementMicromapNV.Ptr allocate(Arena arena, long count) -
clone
public static VkAccelerationStructureTrianglesDisplacementMicromapNV clone(Arena arena, VkAccelerationStructureTrianglesDisplacementMicromapNV src) -
autoInit
public void autoInit() -
sType
-
sType
public VkAccelerationStructureTrianglesDisplacementMicromapNV sType(@EnumType(VkStructureType.class) int value) -
pNext
-
pNext
-
pNext
public VkAccelerationStructureTrianglesDisplacementMicromapNV pNext(@Nullable @Nullable IPointer pointer) -
displacementBiasAndScaleFormat
-
displacementBiasAndScaleFormat
public VkAccelerationStructureTrianglesDisplacementMicromapNV displacementBiasAndScaleFormat(@EnumType(VkFormat.class) int value) -
displacementVectorFormat
-
displacementVectorFormat
public VkAccelerationStructureTrianglesDisplacementMicromapNV displacementVectorFormat(@EnumType(VkFormat.class) int value) -
displacementBiasAndScaleBuffer
-
displacementBiasAndScaleBuffer
public VkAccelerationStructureTrianglesDisplacementMicromapNV displacementBiasAndScaleBuffer(@NotNull @NotNull VkDeviceOrHostAddressConstKHR value) -
displacementBiasAndScaleBuffer
public VkAccelerationStructureTrianglesDisplacementMicromapNV displacementBiasAndScaleBuffer(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) -
displacementBiasAndScaleStride
-
displacementBiasAndScaleStride
public VkAccelerationStructureTrianglesDisplacementMicromapNV displacementBiasAndScaleStride(@NativeType("VkDeviceSize") @Unsigned long value) -
displacementVectorBuffer
-
displacementVectorBuffer
public VkAccelerationStructureTrianglesDisplacementMicromapNV displacementVectorBuffer(@NotNull @NotNull VkDeviceOrHostAddressConstKHR value) -
displacementVectorBuffer
public VkAccelerationStructureTrianglesDisplacementMicromapNV displacementVectorBuffer(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) -
displacementVectorStride
-
displacementVectorStride
public VkAccelerationStructureTrianglesDisplacementMicromapNV displacementVectorStride(@NativeType("VkDeviceSize") @Unsigned long value) -
displacedMicromapPrimitiveFlags
-
displacedMicromapPrimitiveFlags
public VkAccelerationStructureTrianglesDisplacementMicromapNV displacedMicromapPrimitiveFlags(@NotNull @NotNull VkDeviceOrHostAddressConstKHR value) -
displacedMicromapPrimitiveFlags
public VkAccelerationStructureTrianglesDisplacementMicromapNV displacedMicromapPrimitiveFlags(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) -
displacedMicromapPrimitiveFlagsStride
-
displacedMicromapPrimitiveFlagsStride
public VkAccelerationStructureTrianglesDisplacementMicromapNV displacedMicromapPrimitiveFlagsStride(@NativeType("VkDeviceSize") @Unsigned long value) -
indexType
-
indexType
public VkAccelerationStructureTrianglesDisplacementMicromapNV indexType(@EnumType(VkIndexType.class) int value) -
indexBuffer
-
indexBuffer
public VkAccelerationStructureTrianglesDisplacementMicromapNV indexBuffer(@NotNull @NotNull VkDeviceOrHostAddressConstKHR value) -
indexBuffer
public VkAccelerationStructureTrianglesDisplacementMicromapNV indexBuffer(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) -
indexStride
-
indexStride
public VkAccelerationStructureTrianglesDisplacementMicromapNV indexStride(@NativeType("VkDeviceSize") @Unsigned long value) -
baseTriangle
-
baseTriangle
-
usageCountsCount
-
usageCountsCount
-
pUsageCounts
public VkAccelerationStructureTrianglesDisplacementMicromapNV pUsageCounts(@Nullable @Nullable IVkMicromapUsageEXT value) -
pUsageCounts
-
pUsageCounts
-
pUsageCountsRaw
-
pUsageCountsRaw
-
ppUsageCounts
Note: the returnedPointerPtr
does not have correctPointerPtr.size()
property. It's up to user to track the size of the buffer, and usePointerPtr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
ppUsageCounts
public VkAccelerationStructureTrianglesDisplacementMicromapNV ppUsageCounts(@Nullable @Nullable PointerPtr value) -
ppUsageCountsRaw
-
ppUsageCountsRaw
-
micromap
-
micromap
public VkAccelerationStructureTrianglesDisplacementMicromapNV micromap(@Nullable @Nullable VkMicromapEXT 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.
-