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; // optional
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 recordRepresents a pointer to / an array ofVkAccelerationStructureTrianglesDisplacementMicromapNVstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final UnionLayoutstatic final ValueLayout.OfLongstatic final UnionLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfLongstatic final UnionLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfLongstatic final UnionLayoutstatic final ValueLayout.OfLongstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkAccelerationStructureTrianglesDisplacementMicromapNV(@NotNull MemorySegment segment) Creates an instance of aVkAccelerationStructureTrianglesDisplacementMicromapNVrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidautoInit()intbaseTriangle(int value) @NotNull VkDeviceOrHostAddressConstKHRdisplacedMicromapPrimitiveFlags(@NotNull VkDeviceOrHostAddressConstKHR value) displacedMicromapPrimitiveFlags(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) longdisplacedMicromapPrimitiveFlagsStride(long value) @NotNull VkDeviceOrHostAddressConstKHRdisplacementBiasAndScaleBuffer(@NotNull VkDeviceOrHostAddressConstKHR value) displacementBiasAndScaleBuffer(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) intdisplacementBiasAndScaleFormat(int value) longdisplacementBiasAndScaleStride(long value) @NotNull VkDeviceOrHostAddressConstKHRdisplacementVectorBuffer(@NotNull VkDeviceOrHostAddressConstKHR value) displacementVectorBuffer(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) intdisplacementVectorFormat(int value) longdisplacementVectorStride(long value) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull VkDeviceOrHostAddressConstKHRindexBuffer(@NotNull VkDeviceOrHostAddressConstKHR value) indexBuffer(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) longindexStride(long value) intindexType(int value) @Nullable VkMicromapEXTmicromap()micromap(@Nullable VkMicromapEXT value) @NotNull MemorySegmentpNext()pNext(@NotNull MemorySegment value) @Nullable PointerPtrNote: the returnedPointerPtrdoes not have correctPointerPtr.size()property.ppUsageCounts(@Nullable PointerPtr value) @NotNull MemorySegmentvoidppUsageCountsRaw(@NotNull MemorySegment value) @Nullable VkMicromapUsageEXTpUsageCounts(int assumedCount) pUsageCounts(@Nullable IVkMicromapUsageEXT value) @NotNull MemorySegmentvoidpUsageCountsRaw(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intsType()sType(int value) final StringtoString()Returns a string representation of this record class.intusageCountsCount(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 aVkAccelerationStructureTrianglesDisplacementMicromapNVrecord class.- Parameters:
segment- the value for thesegmentrecord 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
public VkAccelerationStructureTrianglesDisplacementMicromapNV pNext(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
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
public void pUsageCountsRaw(@Pointer(target=VkMicromapUsageEXT.class) @NotNull @NotNull MemorySegment value) -
ppUsageCounts
Note: the returnedPointerPtrdoes 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 thesegmentrecord component.
-