Class VkMicromapBuildInfoEXT
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.ext.struct.VkMicromapBuildInfoEXT
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkMicromapBuildInfoEXT.Buffer
Layout
struct VkMicromapBuildInfoEXT {
(int) VkStructureType sType;
const void* pNext;
(int) VkMicromapTypeEXT type;
((uint32_t) VkFlags) VkBuildMicromapFlagsEXT flags;
(int) VkBuildMicromapModeEXT mode;
(uint64_t) VkMicromapEXT dstMicromap;
uint32_t usageCountsCount;
const VkMicromapUsageEXT* pUsageCounts;
const VkMicromapUsageEXT* const * ppUsageCounts;
(union VkDeviceOrHostAddressConstKHR) VkDeviceOrHostAddressConstKHR data;
(union VkDeviceOrHostAddressKHR) VkDeviceOrHostAddressKHR scratchData;
(union VkDeviceOrHostAddressConstKHR) VkDeviceOrHostAddressConstKHR triangleArray;
(uint64_t) VkDeviceSize triangleArrayStride;
};
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkMicromapBuildInfoEXT
.static final MemoryLayout
The memory layout ofdata
.static final MemoryLayout
The memory layout ofdstMicromap
.static final MemoryLayout
The memory layout offlags
.static final MemoryLayout
The memory layout ofmode
.static final MemoryLayout
The memory layout ofpNext
.static final MemoryLayout
The memory layout ofppUsageCounts
.static final MemoryLayout
The memory layout ofpUsageCounts
.static final MemoryLayout
The memory layout ofscratchData
.static final MemoryLayout
The memory layout ofsType
.static final MemoryLayout
The memory layout oftriangleArray
.static final MemoryLayout
The memory layout oftriangleArrayStride
.static final MemoryLayout
The memory layout oftype
.static final MemoryLayout
The memory layout ofusageCountsCount
.static final long
The byte offset ofdata
.static final long
The byte offset ofdstMicromap
.static final long
The byte offset offlags
.static final long
The byte offset ofmode
.static final long
The byte offset ofpNext
.static final long
The byte offset ofppUsageCounts
.static final long
The byte offset ofpUsageCounts
.static final long
The byte offset ofscratchData
.static final long
The byte offset ofsType
.static final long
The byte offset oftriangleArray
.static final long
The byte offset oftriangleArrayStride
.static final long
The byte offset oftype
.static final long
The byte offset ofusageCountsCount
.static final VarHandle
TheVarHandle
ofdstMicromap
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
TheVarHandle
ofppUsageCounts
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofpUsageCounts
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
TheVarHandle
oftriangleArrayStride
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
TheVarHandle
ofusageCountsCount
of type(MemorySegment base, long baseOffset, long index)MemorySegment
. -
Constructor Summary
ConstructorsConstructorDescriptionVkMicromapBuildInfoEXT
(MemorySegment segment) CreatesVkMicromapBuildInfoEXT
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMicromapBuildInfoEXT
alloc
(SegmentAllocator allocator) Allocates aVkMicromapBuildInfoEXT
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkMicromapBuildInfoEXT
with the given segment allocator and count.asBuffer()
Converts this instance to a buffer.Copies from the given source.data()
Returnsdata
.data
(MemorySegment value) Setsdata
with the given value.static MemorySegment
data
(MemorySegment segment, long index) Returnsdata
at the given index.static void
data
(MemorySegment segment, long index, MemorySegment value) Setsdata
with the given value at the given index.long
ReturnsdstMicromap
.dstMicromap
(long value) SetsdstMicromap
with the given value.static long
dstMicromap
(MemorySegment segment, long index) ReturnsdstMicromap
at the given index.static void
dstMicromap
(MemorySegment segment, long index, long value) SetsdstMicromap
with the given value at the given index.int
flags()
Returnsflags
.flags
(int value) Setsflags
with the given value.static int
flags
(MemorySegment segment, long index) Returnsflags
at the given index.static void
flags
(MemorySegment segment, long index, int value) Setsflags
with the given value at the given index.int
mode()
Returnsmode
.mode
(int value) Setsmode
with the given value.static int
mode
(MemorySegment segment, long index) Returnsmode
at the given index.static void
mode
(MemorySegment segment, long index, int value) Setsmode
with the given value at the given index.of
(MemorySegment segment) CreatesVkMicromapBuildInfoEXT
with the given segment.static VkMicromapBuildInfoEXT
ofNative
(MemorySegment segment) CreatesVkMicromapBuildInfoEXT
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkMicromapBuildInfoEXT
with the given segment.pNext()
ReturnspNext
.pNext
(MemorySegment value) SetspNext
with the given value.static MemorySegment
pNext
(MemorySegment segment, long index) ReturnspNext
at the given index.static void
pNext
(MemorySegment segment, long index, MemorySegment value) SetspNext
with the given value at the given index.ReturnsppUsageCounts
.ppUsageCounts
(MemorySegment value) SetsppUsageCounts
with the given value.static MemorySegment
ppUsageCounts
(MemorySegment segment, long index) ReturnsppUsageCounts
at the given index.static void
ppUsageCounts
(MemorySegment segment, long index, MemorySegment value) SetsppUsageCounts
with the given value at the given index.ReturnspUsageCounts
.pUsageCounts
(MemorySegment value) SetspUsageCounts
with the given value.static MemorySegment
pUsageCounts
(MemorySegment segment, long index) ReturnspUsageCounts
at the given index.static void
pUsageCounts
(MemorySegment segment, long index, MemorySegment value) SetspUsageCounts
with the given value at the given index.ReturnsscratchData
.scratchData
(MemorySegment value) SetsscratchData
with the given value.static MemorySegment
scratchData
(MemorySegment segment, long index) ReturnsscratchData
at the given index.static void
scratchData
(MemorySegment segment, long index, MemorySegment value) SetsscratchData
with the given value at the given index.int
sType()
ReturnssType
.sType
(int value) SetssType
with the given value.static int
sType
(MemorySegment segment, long index) ReturnssType
at the given index.static void
sType
(MemorySegment segment, long index, int value) SetssType
with the given value at the given index.ReturnstriangleArray
.triangleArray
(MemorySegment value) SetstriangleArray
with the given value.static MemorySegment
triangleArray
(MemorySegment segment, long index) ReturnstriangleArray
at the given index.static void
triangleArray
(MemorySegment segment, long index, MemorySegment value) SetstriangleArray
with the given value at the given index.long
ReturnstriangleArrayStride
.triangleArrayStride
(long value) SetstriangleArrayStride
with the given value.static long
triangleArrayStride
(MemorySegment segment, long index) ReturnstriangleArrayStride
at the given index.static void
triangleArrayStride
(MemorySegment segment, long index, long value) SetstriangleArrayStride
with the given value at the given index.int
type()
Returnstype
.type
(int value) Setstype
with the given value.static int
type
(MemorySegment segment, long index) Returnstype
at the given index.static void
type
(MemorySegment segment, long index, int value) Setstype
with the given value at the given index.int
ReturnsusageCountsCount
.usageCountsCount
(int value) SetsusageCountsCount
with the given value.static int
usageCountsCount
(MemorySegment segment, long index) ReturnsusageCountsCount
at the given index.static void
usageCountsCount
(MemorySegment segment, long index, int value) SetsusageCountsCount
with the given value at the given index.Methods inherited from class overrungl.struct.GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkMicromapBuildInfoEXT
. -
OFFSET_sType
public static final long OFFSET_sTypeThe byte offset ofsType
. -
LAYOUT_sType
The memory layout ofsType
. -
VH_sType
-
OFFSET_pNext
public static final long OFFSET_pNextThe byte offset ofpNext
. -
LAYOUT_pNext
The memory layout ofpNext
. -
VH_pNext
-
OFFSET_type
public static final long OFFSET_typeThe byte offset oftype
. -
LAYOUT_type
The memory layout oftype
. -
VH_type
-
OFFSET_flags
public static final long OFFSET_flagsThe byte offset offlags
. -
LAYOUT_flags
The memory layout offlags
. -
VH_flags
-
OFFSET_mode
public static final long OFFSET_modeThe byte offset ofmode
. -
LAYOUT_mode
The memory layout ofmode
. -
VH_mode
-
OFFSET_dstMicromap
public static final long OFFSET_dstMicromapThe byte offset ofdstMicromap
. -
LAYOUT_dstMicromap
The memory layout ofdstMicromap
. -
VH_dstMicromap
-
OFFSET_usageCountsCount
public static final long OFFSET_usageCountsCountThe byte offset ofusageCountsCount
. -
LAYOUT_usageCountsCount
The memory layout ofusageCountsCount
. -
VH_usageCountsCount
-
OFFSET_pUsageCounts
public static final long OFFSET_pUsageCountsThe byte offset ofpUsageCounts
. -
LAYOUT_pUsageCounts
The memory layout ofpUsageCounts
. -
VH_pUsageCounts
-
OFFSET_ppUsageCounts
public static final long OFFSET_ppUsageCountsThe byte offset ofppUsageCounts
. -
LAYOUT_ppUsageCounts
The memory layout ofppUsageCounts
. -
VH_ppUsageCounts
-
OFFSET_data
public static final long OFFSET_dataThe byte offset ofdata
. -
LAYOUT_data
The memory layout ofdata
. -
OFFSET_scratchData
public static final long OFFSET_scratchDataThe byte offset ofscratchData
. -
LAYOUT_scratchData
The memory layout ofscratchData
. -
OFFSET_triangleArray
public static final long OFFSET_triangleArrayThe byte offset oftriangleArray
. -
LAYOUT_triangleArray
The memory layout oftriangleArray
. -
OFFSET_triangleArrayStride
public static final long OFFSET_triangleArrayStrideThe byte offset oftriangleArrayStride
. -
LAYOUT_triangleArrayStride
The memory layout oftriangleArrayStride
. -
VH_triangleArrayStride
-
-
Constructor Details
-
VkMicromapBuildInfoEXT
CreatesVkMicromapBuildInfoEXT
with the given segment.- Parameters:
segment
- the memory segment
-
-
Method Details
-
of
CreatesVkMicromapBuildInfoEXT
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkMicromapBuildInfoEXT
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkMicromapBuildInfoEXT
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segmentcount
- the count of the buffer- Returns:
- the created instance or
null
if the segment isNULL
-
alloc
Allocates aVkMicromapBuildInfoEXT
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkMicromapBuildInfoEXT
-
alloc
Allocates aVkMicromapBuildInfoEXT
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkMicromapBuildInfoEXT
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
asBuffer
Converts this instance to a buffer.- Returns:
- the buffer
-
sType
ReturnssType
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
sType
at the given index
-
sType
public int sType()ReturnssType
.- Returns:
sType
-
sType
SetssType
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
sType
SetssType
with the given value.- Parameters:
value
- the value- Returns:
this
-
pNext
ReturnspNext
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
pNext
at the given index
-
pNext
-
pNext
SetspNext
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
pNext
SetspNext
with the given value.- Parameters:
value
- the value- Returns:
this
-
type
Returnstype
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
type
at the given index
-
type
public int type()Returnstype
.- Returns:
type
-
type
Setstype
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
type
Setstype
with the given value.- Parameters:
value
- the value- Returns:
this
-
flags
Returnsflags
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
flags
at the given index
-
flags
public int flags()Returnsflags
.- Returns:
flags
-
flags
Setsflags
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
flags
Setsflags
with the given value.- Parameters:
value
- the value- Returns:
this
-
mode
Returnsmode
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
mode
at the given index
-
mode
public int mode()Returnsmode
.- Returns:
mode
-
mode
Setsmode
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
mode
Setsmode
with the given value.- Parameters:
value
- the value- Returns:
this
-
dstMicromap
ReturnsdstMicromap
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
dstMicromap
at the given index
-
dstMicromap
public long dstMicromap()ReturnsdstMicromap
.- Returns:
dstMicromap
-
dstMicromap
SetsdstMicromap
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
dstMicromap
SetsdstMicromap
with the given value.- Parameters:
value
- the value- Returns:
this
-
usageCountsCount
ReturnsusageCountsCount
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
usageCountsCount
at the given index
-
usageCountsCount
public int usageCountsCount()ReturnsusageCountsCount
.- Returns:
usageCountsCount
-
usageCountsCount
SetsusageCountsCount
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
usageCountsCount
SetsusageCountsCount
with the given value.- Parameters:
value
- the value- Returns:
this
-
pUsageCounts
ReturnspUsageCounts
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
pUsageCounts
at the given index
-
pUsageCounts
-
pUsageCounts
SetspUsageCounts
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
pUsageCounts
SetspUsageCounts
with the given value.- Parameters:
value
- the value- Returns:
this
-
ppUsageCounts
ReturnsppUsageCounts
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
ppUsageCounts
at the given index
-
ppUsageCounts
-
ppUsageCounts
SetsppUsageCounts
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
ppUsageCounts
SetsppUsageCounts
with the given value.- Parameters:
value
- the value- Returns:
this
-
data
Returnsdata
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
data
at the given index
-
data
-
data
Setsdata
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
data
Setsdata
with the given value.- Parameters:
value
- the value- Returns:
this
-
scratchData
ReturnsscratchData
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
scratchData
at the given index
-
scratchData
-
scratchData
SetsscratchData
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
scratchData
SetsscratchData
with the given value.- Parameters:
value
- the value- Returns:
this
-
triangleArray
ReturnstriangleArray
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
triangleArray
at the given index
-
triangleArray
-
triangleArray
SetstriangleArray
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
triangleArray
SetstriangleArray
with the given value.- Parameters:
value
- the value- Returns:
this
-
triangleArrayStride
ReturnstriangleArrayStride
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
triangleArrayStride
at the given index
-
triangleArrayStride
public long triangleArrayStride()ReturnstriangleArrayStride
.- Returns:
triangleArrayStride
-
triangleArrayStride
SetstriangleArrayStride
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
triangleArrayStride
SetstriangleArrayStride
with the given value.- Parameters:
value
- the value- Returns:
this
-