Record Class VkMicromapBuildInfoEXT
- All Implemented Interfaces:
IPointer
,IVkMicromapBuildInfoEXT
Represents a pointer to a VkMicromapBuildInfoEXT
structure in native memory.
Structure
typedef struct VkMicromapBuildInfoEXT {
VkStructureType
sType
;
void const* pNext
; // optional
VkMicromapTypeEXT
type
;
VkBuildMicromapFlagsEXT
flags
; // optional
VkBuildMicromapModeEXT
mode
;
VkMicromapEXT
dstMicromap
; // optional
uint32_t usageCountsCount
; // optional
VkMicromapUsageEXT
const* pUsageCounts
; // optional
VkMicromapUsageEXT
const* const* ppUsageCounts
;
VkDeviceOrHostAddressConstKHR
data
;
VkDeviceOrHostAddressKHR
scratchData
;
VkDeviceOrHostAddressConstKHR
triangleArray
;
VkDeviceSize triangleArrayStride
;
} VkMicromapBuildInfoEXT;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_MICROMAP_BUILD_INFO_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 ofVkMicromapBuildInfoEXT
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final UnionLayout
static final AddressLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final UnionLayout
static final ValueLayout.OfInt
static final UnionLayout
static final ValueLayout.OfLong
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 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
-
Constructor Summary
ConstructorsConstructorDescriptionVkMicromapBuildInfoEXT
(@NotNull MemorySegment segment) Creates an instance of aVkMicromapBuildInfoEXT
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMicromapBuildInfoEXT
static VkMicromapBuildInfoEXT.Ptr
void
autoInit()
static VkMicromapBuildInfoEXT
clone
(Arena arena, VkMicromapBuildInfoEXT src) @NotNull VkDeviceOrHostAddressConstKHR
data()
data
(@NotNull VkDeviceOrHostAddressConstKHR value) data
(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) @Nullable VkMicromapEXT
dstMicromap
(@Nullable VkMicromapEXT value) final boolean
Indicates whether some other object is "equal to" this one.int
flags()
flags
(int value) final int
hashCode()
Returns a hash code value for this object.int
mode()
mode
(int 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 VkDeviceOrHostAddressKHR
scratchData
(@NotNull VkDeviceOrHostAddressKHR value) scratchData
(Consumer<@NotNull VkDeviceOrHostAddressKHR> consumer) @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.@NotNull VkDeviceOrHostAddressConstKHR
triangleArray
(@NotNull VkDeviceOrHostAddressConstKHR value) triangleArray
(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) long
triangleArrayStride
(long value) int
type()
type
(int value) int
usageCountsCount
(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$type
-
PATH$flags
-
PATH$mode
-
PATH$dstMicromap
-
PATH$usageCountsCount
-
PATH$pUsageCounts
-
PATH$ppUsageCounts
-
PATH$data
-
PATH$scratchData
-
PATH$triangleArray
-
PATH$triangleArrayStride
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$type
-
LAYOUT$flags
-
LAYOUT$mode
-
LAYOUT$dstMicromap
-
LAYOUT$usageCountsCount
-
LAYOUT$pUsageCounts
-
LAYOUT$ppUsageCounts
-
LAYOUT$data
-
LAYOUT$scratchData
-
LAYOUT$triangleArray
-
LAYOUT$triangleArrayStride
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$type
public static final long SIZE$type -
SIZE$flags
public static final long SIZE$flags -
SIZE$mode
public static final long SIZE$mode -
SIZE$dstMicromap
public static final long SIZE$dstMicromap -
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$data
public static final long SIZE$data -
SIZE$scratchData
public static final long SIZE$scratchData -
SIZE$triangleArray
public static final long SIZE$triangleArray -
SIZE$triangleArrayStride
public static final long SIZE$triangleArrayStride -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$type
public static final long OFFSET$type -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$mode
public static final long OFFSET$mode -
OFFSET$dstMicromap
public static final long OFFSET$dstMicromap -
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$data
public static final long OFFSET$data -
OFFSET$scratchData
public static final long OFFSET$scratchData -
OFFSET$triangleArray
public static final long OFFSET$triangleArray -
OFFSET$triangleArrayStride
public static final long OFFSET$triangleArrayStride
-
-
Constructor Details
-
VkMicromapBuildInfoEXT
Creates an instance of aVkMicromapBuildInfoEXT
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
-
pNext
-
type
-
type
-
flags
-
flags
-
mode
-
mode
-
dstMicromap
-
dstMicromap
-
usageCountsCount
-
usageCountsCount
-
pUsageCounts
-
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
-
ppUsageCountsRaw
-
ppUsageCountsRaw
-
data
-
data
-
data
-
scratchData
-
scratchData
-
scratchData
-
triangleArray
-
triangleArray
-
triangleArray
public VkMicromapBuildInfoEXT triangleArray(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) -
triangleArrayStride
-
triangleArrayStride
-
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.
-