Class VkBuildPartitionedAccelerationStructureInfoNV
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.struct.VkBuildPartitionedAccelerationStructureInfoNV
- All Implemented Interfaces:
Addressable
Layout
struct VkBuildPartitionedAccelerationStructureInfoNV {
(int) VkStructureType sType;
void* pNext;
(struct VkPartitionedAccelerationStructureInstancesInputNV) VkPartitionedAccelerationStructureInstancesInputNV input;
(uint64_t) VkDeviceAddress srcAccelerationStructureData;
(uint64_t) VkDeviceAddress dstAccelerationStructureData;
(uint64_t) VkDeviceAddress scratchData;
(uint64_t) VkDeviceAddress srcInfos;
(uint64_t) VkDeviceAddress srcInfosCount;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkBuildPartitionedAccelerationStructureInfoNV
.static final MemoryLayout
The memory layout ofdstAccelerationStructureData
.static final MemoryLayout
The memory layout ofinput
.static final MemoryLayout
The memory layout ofpNext
.static final MemoryLayout
The memory layout ofscratchData
.static final MemoryLayout
The memory layout ofsrcAccelerationStructureData
.static final MemoryLayout
The memory layout ofsrcInfos
.static final MemoryLayout
The memory layout ofsrcInfosCount
.static final MemoryLayout
The memory layout ofsType
.static final long
The byte offset ofdstAccelerationStructureData
.static final long
The byte offset ofinput
.static final long
The byte offset ofpNext
.static final long
The byte offset ofscratchData
.static final long
The byte offset ofsrcAccelerationStructureData
.static final long
The byte offset ofsrcInfos
.static final long
The byte offset ofsrcInfosCount
.static final long
The byte offset ofsType
.static final VarHandle
TheVarHandle
ofdstAccelerationStructureData
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
TheVarHandle
ofscratchData
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofsrcAccelerationStructureData
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
TheVarHandle
ofsrcInfosCount
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
-
Constructor Summary
ConstructorsConstructorDescriptionVkBuildPartitionedAccelerationStructureInfoNV
(MemorySegment segment, long elementCount) CreatesVkBuildPartitionedAccelerationStructureInfoNV
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc
(SegmentAllocator allocator) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and count.asSlice
(long index) Creates a slice ofVkBuildPartitionedAccelerationStructureInfoNV
.asSlice
(long index, long count) Creates a slice ofVkBuildPartitionedAccelerationStructureInfoNV
.at
(long index, Consumer<VkBuildPartitionedAccelerationStructureInfoNV> func) VisitsVkBuildPartitionedAccelerationStructureInfoNV
buffer at the given index.Copies from the given source.long
ReturnsdstAccelerationStructureData
.dstAccelerationStructureData
(long value) SetsdstAccelerationStructureData
with the given value.static long
dstAccelerationStructureData
(MemorySegment segment, long index) ReturnsdstAccelerationStructureData
at the given index.static void
dstAccelerationStructureData
(MemorySegment segment, long index, long value) SetsdstAccelerationStructureData
with the given value at the given index.long
dstAccelerationStructureDataAt
(long index) ReturnsdstAccelerationStructureData
at the given index.dstAccelerationStructureDataAt
(long index, long value) SetsdstAccelerationStructureData
with the given value at the given index.input()
Returnsinput
.input
(MemorySegment value) Setsinput
with the given value.static MemorySegment
input
(MemorySegment segment, long index) Returnsinput
at the given index.static void
input
(MemorySegment segment, long index, MemorySegment value) Setsinput
with the given value at the given index.Acceptsinput
with the given function.inputAt
(long index) Returnsinput
at the given index.inputAt
(long index, MemorySegment value) Setsinput
with the given value at the given index.inputAt
(long index, Consumer<VkPartitionedAccelerationStructureInstancesInputNV> func) Acceptsinput
with the given function.of
(MemorySegment segment) CreatesVkBuildPartitionedAccelerationStructureInfoNV
with the given segment.ofNative
(MemorySegment segment) CreatesVkBuildPartitionedAccelerationStructureInfoNV
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkBuildPartitionedAccelerationStructureInfoNV
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.pNextAt
(long index) ReturnspNext
at the given index.pNextAt
(long index, MemorySegment value) SetspNext
with the given value at the given index.reinterpret
(long count) Reinterprets this buffer with the given count.long
ReturnsscratchData
.scratchData
(long value) SetsscratchData
with the given value.static long
scratchData
(MemorySegment segment, long index) ReturnsscratchData
at the given index.static void
scratchData
(MemorySegment segment, long index, long value) SetsscratchData
with the given value at the given index.long
scratchDataAt
(long index) ReturnsscratchData
at the given index.scratchDataAt
(long index, long value) SetsscratchData
with the given value at the given index.long
ReturnssrcAccelerationStructureData
.srcAccelerationStructureData
(long value) SetssrcAccelerationStructureData
with the given value.static long
srcAccelerationStructureData
(MemorySegment segment, long index) ReturnssrcAccelerationStructureData
at the given index.static void
srcAccelerationStructureData
(MemorySegment segment, long index, long value) SetssrcAccelerationStructureData
with the given value at the given index.long
srcAccelerationStructureDataAt
(long index) ReturnssrcAccelerationStructureData
at the given index.srcAccelerationStructureDataAt
(long index, long value) SetssrcAccelerationStructureData
with the given value at the given index.long
srcInfos()
ReturnssrcInfos
.srcInfos
(long value) SetssrcInfos
with the given value.static long
srcInfos
(MemorySegment segment, long index) ReturnssrcInfos
at the given index.static void
srcInfos
(MemorySegment segment, long index, long value) SetssrcInfos
with the given value at the given index.long
srcInfosAt
(long index) ReturnssrcInfos
at the given index.srcInfosAt
(long index, long value) SetssrcInfos
with the given value at the given index.long
ReturnssrcInfosCount
.srcInfosCount
(long value) SetssrcInfosCount
with the given value.static long
srcInfosCount
(MemorySegment segment, long index) ReturnssrcInfosCount
at the given index.static void
srcInfosCount
(MemorySegment segment, long index, long value) SetssrcInfosCount
with the given value at the given index.long
srcInfosCountAt
(long index) ReturnssrcInfosCount
at the given index.srcInfosCountAt
(long index, long value) SetssrcInfosCount
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.int
sTypeAt
(long index) ReturnssType
at the given index.sTypeAt
(long index, int value) SetssType
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 ofVkBuildPartitionedAccelerationStructureInfoNV
. -
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_input
public static final long OFFSET_inputThe byte offset ofinput
. -
LAYOUT_input
The memory layout ofinput
. -
OFFSET_srcAccelerationStructureData
public static final long OFFSET_srcAccelerationStructureDataThe byte offset ofsrcAccelerationStructureData
. -
LAYOUT_srcAccelerationStructureData
The memory layout ofsrcAccelerationStructureData
. -
VH_srcAccelerationStructureData
-
OFFSET_dstAccelerationStructureData
public static final long OFFSET_dstAccelerationStructureDataThe byte offset ofdstAccelerationStructureData
. -
LAYOUT_dstAccelerationStructureData
The memory layout ofdstAccelerationStructureData
. -
VH_dstAccelerationStructureData
-
OFFSET_scratchData
public static final long OFFSET_scratchDataThe byte offset ofscratchData
. -
LAYOUT_scratchData
The memory layout ofscratchData
. -
VH_scratchData
-
OFFSET_srcInfos
public static final long OFFSET_srcInfosThe byte offset ofsrcInfos
. -
LAYOUT_srcInfos
The memory layout ofsrcInfos
. -
VH_srcInfos
-
OFFSET_srcInfosCount
public static final long OFFSET_srcInfosCountThe byte offset ofsrcInfosCount
. -
LAYOUT_srcInfosCount
The memory layout ofsrcInfosCount
. -
VH_srcInfosCount
-
-
Constructor Details
-
VkBuildPartitionedAccelerationStructureInfoNV
CreatesVkBuildPartitionedAccelerationStructureInfoNV
with the given segment.- Parameters:
segment
- the memory segmentelementCount
- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkBuildPartitionedAccelerationStructureInfoNV
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkBuildPartitionedAccelerationStructureInfoNV
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
public static VkBuildPartitionedAccelerationStructureInfoNV ofNative(MemorySegment segment, long count) Creates
VkBuildPartitionedAccelerationStructureInfoNV
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 aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkBuildPartitionedAccelerationStructureInfoNV
-
alloc
public static VkBuildPartitionedAccelerationStructureInfoNV alloc(SegmentAllocator allocator, long count) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkBuildPartitionedAccelerationStructureInfoNV
-
copyFrom
public VkBuildPartitionedAccelerationStructureInfoNV copyFrom(VkBuildPartitionedAccelerationStructureInfoNV src) Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
reinterpret
Reinterprets this buffer with the given count.- Parameters:
count
- the new count- Returns:
- the reinterpreted 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
-
input
Returnsinput
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
input
at the given index
-
input
-
input
Setsinput
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
input
Setsinput
with the given value.- Parameters:
value
- the value- Returns:
this
-
input
public VkBuildPartitionedAccelerationStructureInfoNV input(Consumer<VkPartitionedAccelerationStructureInstancesInputNV> func) Acceptsinput
with the given function.- Parameters:
func
- the function- Returns:
this
-
srcAccelerationStructureData
ReturnssrcAccelerationStructureData
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
srcAccelerationStructureData
at the given index
-
srcAccelerationStructureData
public long srcAccelerationStructureData()ReturnssrcAccelerationStructureData
.- Returns:
srcAccelerationStructureData
-
srcAccelerationStructureData
SetssrcAccelerationStructureData
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
srcAccelerationStructureData
SetssrcAccelerationStructureData
with the given value.- Parameters:
value
- the value- Returns:
this
-
dstAccelerationStructureData
ReturnsdstAccelerationStructureData
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
dstAccelerationStructureData
at the given index
-
dstAccelerationStructureData
public long dstAccelerationStructureData()ReturnsdstAccelerationStructureData
.- Returns:
dstAccelerationStructureData
-
dstAccelerationStructureData
SetsdstAccelerationStructureData
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
dstAccelerationStructureData
SetsdstAccelerationStructureData
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
public long scratchData()ReturnsscratchData
.- Returns:
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
-
srcInfos
ReturnssrcInfos
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
srcInfos
at the given index
-
srcInfos
public long srcInfos()ReturnssrcInfos
.- Returns:
srcInfos
-
srcInfos
SetssrcInfos
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
srcInfos
SetssrcInfos
with the given value.- Parameters:
value
- the value- Returns:
this
-
srcInfosCount
ReturnssrcInfosCount
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
srcInfosCount
at the given index
-
srcInfosCount
public long srcInfosCount()ReturnssrcInfosCount
.- Returns:
srcInfosCount
-
srcInfosCount
SetssrcInfosCount
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
srcInfosCount
SetssrcInfosCount
with the given value.- Parameters:
value
- the value- Returns:
this
-
asSlice
Creates a slice ofVkBuildPartitionedAccelerationStructureInfoNV
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkBuildPartitionedAccelerationStructureInfoNV
-
asSlice
Creates a slice ofVkBuildPartitionedAccelerationStructureInfoNV
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkBuildPartitionedAccelerationStructureInfoNV
-
at
public VkBuildPartitionedAccelerationStructureInfoNV at(long index, Consumer<VkBuildPartitionedAccelerationStructureInfoNV> func) VisitsVkBuildPartitionedAccelerationStructureInfoNV
buffer at the given index.- Parameters:
index
- the index of this bufferfunc
- the function to run with the slice of this buffer- Returns:
this
-
sTypeAt
public int sTypeAt(long index) ReturnssType
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
sType
at the given index
-
sTypeAt
SetssType
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
pNextAt
ReturnspNext
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
pNext
at the given index
-
pNextAt
SetspNext
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
inputAt
Returnsinput
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
input
at the given index
-
inputAt
Setsinput
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
inputAt
public VkBuildPartitionedAccelerationStructureInfoNV inputAt(long index, Consumer<VkPartitionedAccelerationStructureInstancesInputNV> func) Acceptsinput
with the given function.- Parameters:
index
- the index of the struct bufferfunc
- the function- Returns:
this
-
srcAccelerationStructureDataAt
public long srcAccelerationStructureDataAt(long index) ReturnssrcAccelerationStructureData
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
srcAccelerationStructureData
at the given index
-
srcAccelerationStructureDataAt
public VkBuildPartitionedAccelerationStructureInfoNV srcAccelerationStructureDataAt(long index, long value) SetssrcAccelerationStructureData
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
dstAccelerationStructureDataAt
public long dstAccelerationStructureDataAt(long index) ReturnsdstAccelerationStructureData
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
dstAccelerationStructureData
at the given index
-
dstAccelerationStructureDataAt
public VkBuildPartitionedAccelerationStructureInfoNV dstAccelerationStructureDataAt(long index, long value) SetsdstAccelerationStructureData
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
scratchDataAt
public long scratchDataAt(long index) ReturnsscratchData
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
scratchData
at the given index
-
scratchDataAt
SetsscratchData
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
srcInfosAt
public long srcInfosAt(long index) ReturnssrcInfos
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
srcInfos
at the given index
-
srcInfosAt
SetssrcInfos
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
srcInfosCountAt
public long srcInfosCountAt(long index) ReturnssrcInfosCount
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
srcInfosCount
at the given index
-
srcInfosCountAt
SetssrcInfosCount
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-