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; // optional
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 recordRepresents a pointer to / an array ofVkMicromapBuildInfoEXTstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final UnionLayoutstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final UnionLayoutstatic final ValueLayout.OfIntstatic final UnionLayoutstatic final ValueLayout.OfLongstatic 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 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 long -
Constructor Summary
ConstructorsConstructorDescriptionVkMicromapBuildInfoEXT(@NotNull MemorySegment segment) Creates an instance of aVkMicromapBuildInfoEXTrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMicromapBuildInfoEXTstatic VkMicromapBuildInfoEXT.PtrvoidautoInit()static VkMicromapBuildInfoEXTclone(Arena arena, VkMicromapBuildInfoEXT src) @NotNull VkDeviceOrHostAddressConstKHRdata()data(@NotNull VkDeviceOrHostAddressConstKHR value) data(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) @Nullable VkMicromapEXTdstMicromap(@Nullable VkMicromapEXT value) final booleanIndicates whether some other object is "equal to" this one.intflags()flags(int value) final inthashCode()Returns a hash code value for this object.intmode()mode(int 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 VkDeviceOrHostAddressKHRscratchData(@NotNull VkDeviceOrHostAddressKHR value) scratchData(Consumer<@NotNull VkDeviceOrHostAddressKHR> consumer) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intsType()sType(int value) final StringtoString()Returns a string representation of this record class.@NotNull VkDeviceOrHostAddressConstKHRtriangleArray(@NotNull VkDeviceOrHostAddressConstKHR value) triangleArray(Consumer<@NotNull VkDeviceOrHostAddressConstKHR> consumer) longtriangleArrayStride(long value) inttype()type(int value) intusageCountsCount(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 aVkMicromapBuildInfoEXTrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
public VkMicromapBuildInfoEXT pNext(@Pointer(comment="void*") @NotNull @NotNull MemorySegment value) -
pNext
-
type
-
type
-
flags
-
flags
-
mode
-
mode
-
dstMicromap
-
dstMicromap
-
usageCountsCount
-
usageCountsCount
-
pUsageCounts
-
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
-
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 thesegmentrecord component.
-