Record Class VkAccelerationStructureTrianglesOpacityMicromapEXT
- All Implemented Interfaces:
IPointer
,IVkAccelerationStructureTrianglesOpacityMicromapEXT
Represents a pointer to a VkAccelerationStructureTrianglesOpacityMicromapEXT
structure in native memory.
Structure
typedef struct VkAccelerationStructureTrianglesOpacityMicromapEXT {
VkStructureType
sType
;
void* pNext
; // optional
VkIndexType
indexType
;
VkDeviceOrHostAddressConstKHR
indexBuffer
;
VkDeviceSize indexStride
;
uint32_t baseTriangle
;
uint32_t usageCountsCount
; // optional
VkMicromapUsageEXT
const* pUsageCounts
; // optional
VkMicromapUsageEXT
const* const* ppUsageCounts
;
VkMicromapEXT
micromap
; // optional
} VkAccelerationStructureTrianglesOpacityMicromapEXT;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_TRIANGLES_OPACITY_MICROMAP_EXT
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 ofVkAccelerationStructureTrianglesOpacityMicromapEXT
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 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 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
-
Constructor Summary
ConstructorsConstructorDescriptionVkAccelerationStructureTrianglesOpacityMicromapEXT
(@NotNull MemorySegment segment) Creates an instance of aVkAccelerationStructureTrianglesOpacityMicromapEXT
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
autoInit()
int
baseTriangle
(int 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$indexType
-
PATH$indexBuffer
-
PATH$indexStride
-
PATH$baseTriangle
-
PATH$usageCountsCount
-
PATH$pUsageCounts
-
PATH$ppUsageCounts
-
PATH$micromap
-
LAYOUT$sType
-
LAYOUT$pNext
-
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$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$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
-
VkAccelerationStructureTrianglesOpacityMicromapEXT
Creates an instance of aVkAccelerationStructureTrianglesOpacityMicromapEXT
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
public static VkAccelerationStructureTrianglesOpacityMicromapEXT.Ptr allocate(Arena arena, long count) -
clone
public static VkAccelerationStructureTrianglesOpacityMicromapEXT clone(Arena arena, VkAccelerationStructureTrianglesOpacityMicromapEXT src) -
autoInit
public void autoInit() -
sType
-
sType
public VkAccelerationStructureTrianglesOpacityMicromapEXT sType(@EnumType(VkStructureType.class) int value) -
pNext
-
pNext
-
pNext
public VkAccelerationStructureTrianglesOpacityMicromapEXT pNext(@Nullable @Nullable IPointer pointer) -
indexType
-
indexType
public VkAccelerationStructureTrianglesOpacityMicromapEXT indexType(@EnumType(VkIndexType.class) int value) -
indexBuffer
-
indexBuffer
public VkAccelerationStructureTrianglesOpacityMicromapEXT indexBuffer(@NotNull @NotNull VkDeviceOrHostAddressConstKHR value) -
indexBuffer
public VkAccelerationStructureTrianglesOpacityMicromapEXT indexBuffer(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) -
indexStride
-
indexStride
public VkAccelerationStructureTrianglesOpacityMicromapEXT indexStride(@NativeType("VkDeviceSize") @Unsigned long value) -
baseTriangle
-
baseTriangle
-
usageCountsCount
-
usageCountsCount
-
pUsageCounts
public VkAccelerationStructureTrianglesOpacityMicromapEXT 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 VkAccelerationStructureTrianglesOpacityMicromapEXT ppUsageCounts(@Nullable @Nullable PointerPtr value) -
ppUsageCountsRaw
-
ppUsageCountsRaw
-
micromap
-
micromap
public VkAccelerationStructureTrianglesOpacityMicromapEXT 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.
-