Class VkBuildPartitionedAccelerationStructureInfoNV
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.struct.VkBuildPartitionedAccelerationStructureInfoNV
- All Implemented Interfaces:
Addressable
Represents VkBuildPartitionedAccelerationStructureInfoNV.
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 StructLayoutThe struct layout ofVkBuildPartitionedAccelerationStructureInfoNV.static final MemoryLayoutThe memory layout ofdstAccelerationStructureData.static final MemoryLayoutThe memory layout ofinput.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofscratchData.static final MemoryLayoutThe memory layout ofsrcAccelerationStructureData.static final MemoryLayoutThe memory layout ofsrcInfos.static final MemoryLayoutThe memory layout ofsrcInfosCount.static final MemoryLayoutThe memory layout ofsType.static final longThe byte offset ofdstAccelerationStructureData.static final longThe byte offset ofinput.static final longThe byte offset ofpNext.static final longThe byte offset ofscratchData.static final longThe byte offset ofsrcAccelerationStructureData.static final longThe byte offset ofsrcInfos.static final longThe byte offset ofsrcInfosCount.static final longThe byte offset ofsType.static final VarHandleTheVarHandleofdstAccelerationStructureDataof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandleTheVarHandleofscratchDataof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofsrcAccelerationStructureDataof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandleTheVarHandleofsrcInfosCountof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkBuildPartitionedAccelerationStructureInfoNV(MemorySegment segment, long elementCount) CreatesVkBuildPartitionedAccelerationStructureInfoNVwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc(SegmentAllocator allocator) Allocates aVkBuildPartitionedAccelerationStructureInfoNVwith the given segment allocator.alloc(SegmentAllocator allocator, long count) Allocates aVkBuildPartitionedAccelerationStructureInfoNVwith 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) VisitsVkBuildPartitionedAccelerationStructureInfoNVbuffer at the given index.Copies from the given source.longReturnsdstAccelerationStructureData.dstAccelerationStructureData(long value) SetsdstAccelerationStructureDatawith the given value.static longdstAccelerationStructureData(MemorySegment segment, long index) ReturnsdstAccelerationStructureDataat the given index.static voiddstAccelerationStructureData(MemorySegment segment, long index, long value) SetsdstAccelerationStructureDatawith the given value at the given index.longdstAccelerationStructureDataAt(long index) ReturnsdstAccelerationStructureDataat the given index.dstAccelerationStructureDataAt(long index, long value) SetsdstAccelerationStructureDatawith the given value at the given index.input()Returnsinput.input(MemorySegment value) Setsinputwith the given value.static MemorySegmentinput(MemorySegment segment, long index) Returnsinputat the given index.static voidinput(MemorySegment segment, long index, MemorySegment value) Setsinputwith the given value at the given index.Acceptsinputwith the given function.inputAt(long index) Returnsinputat the given index.inputAt(long index, MemorySegment value) Setsinputwith the given value at the given index.inputAt(long index, Consumer<VkPartitionedAccelerationStructureInstancesInputNV> func) Acceptsinputwith the given function.of(MemorySegment segment) CreatesVkBuildPartitionedAccelerationStructureInfoNVwith the given segment.ofNative(MemorySegment segment) CreatesVkBuildPartitionedAccelerationStructureInfoNVwith the given segment.ofNative(MemorySegment segment, long count) CreatesVkBuildPartitionedAccelerationStructureInfoNVwith the given segment.pNext()ReturnspNext.pNext(MemorySegment value) SetspNextwith the given value.static MemorySegmentpNext(MemorySegment segment, long index) ReturnspNextat the given index.static voidpNext(MemorySegment segment, long index, MemorySegment value) SetspNextwith the given value at the given index.pNextAt(long index) ReturnspNextat the given index.pNextAt(long index, MemorySegment value) SetspNextwith the given value at the given index.reinterpret(long count) Reinterprets this buffer with the given count.longReturnsscratchData.scratchData(long value) SetsscratchDatawith the given value.static longscratchData(MemorySegment segment, long index) ReturnsscratchDataat the given index.static voidscratchData(MemorySegment segment, long index, long value) SetsscratchDatawith the given value at the given index.longscratchDataAt(long index) ReturnsscratchDataat the given index.scratchDataAt(long index, long value) SetsscratchDatawith the given value at the given index.longReturnssrcAccelerationStructureData.srcAccelerationStructureData(long value) SetssrcAccelerationStructureDatawith the given value.static longsrcAccelerationStructureData(MemorySegment segment, long index) ReturnssrcAccelerationStructureDataat the given index.static voidsrcAccelerationStructureData(MemorySegment segment, long index, long value) SetssrcAccelerationStructureDatawith the given value at the given index.longsrcAccelerationStructureDataAt(long index) ReturnssrcAccelerationStructureDataat the given index.srcAccelerationStructureDataAt(long index, long value) SetssrcAccelerationStructureDatawith the given value at the given index.longsrcInfos()ReturnssrcInfos.srcInfos(long value) SetssrcInfoswith the given value.static longsrcInfos(MemorySegment segment, long index) ReturnssrcInfosat the given index.static voidsrcInfos(MemorySegment segment, long index, long value) SetssrcInfoswith the given value at the given index.longsrcInfosAt(long index) ReturnssrcInfosat the given index.srcInfosAt(long index, long value) SetssrcInfoswith the given value at the given index.longReturnssrcInfosCount.srcInfosCount(long value) SetssrcInfosCountwith the given value.static longsrcInfosCount(MemorySegment segment, long index) ReturnssrcInfosCountat the given index.static voidsrcInfosCount(MemorySegment segment, long index, long value) SetssrcInfosCountwith the given value at the given index.longsrcInfosCountAt(long index) ReturnssrcInfosCountat the given index.srcInfosCountAt(long index, long value) SetssrcInfosCountwith the given value at the given index.intsType()ReturnssType.sType(int value) SetssTypewith the given value.static intsType(MemorySegment segment, long index) ReturnssTypeat the given index.static voidsType(MemorySegment segment, long index, int value) SetssTypewith the given value at the given index.intsTypeAt(long index) ReturnssTypeat the given index.sTypeAt(long index, int value) SetssTypewith the given value at the given index.Methods inherited from class 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
CreatesVkBuildPartitionedAccelerationStructureInfoNVwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkBuildPartitionedAccelerationStructureInfoNVwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkBuildPartitionedAccelerationStructureInfoNVwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
public static VkBuildPartitionedAccelerationStructureInfoNV ofNative(MemorySegment segment, long count) Creates
VkBuildPartitionedAccelerationStructureInfoNVwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segmentcount- the count of the buffer- Returns:
- the created instance or
nullif the segment isNULL
-
alloc
Allocates aVkBuildPartitionedAccelerationStructureInfoNVwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkBuildPartitionedAccelerationStructureInfoNV
-
alloc
public static VkBuildPartitionedAccelerationStructureInfoNV alloc(SegmentAllocator allocator, long count) Allocates aVkBuildPartitionedAccelerationStructureInfoNVwith 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
ReturnssTypeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
sTypeat the given index
-
sType
public int sType()ReturnssType.- Returns:
sType
-
sType
SetssTypewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
sType
SetssTypewith the given value.- Parameters:
value- the value- Returns:
this
-
pNext
ReturnspNextat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
pNextat the given index
-
pNext
-
pNext
SetspNextwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
pNext
SetspNextwith the given value.- Parameters:
value- the value- Returns:
this
-
input
Returnsinputat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
inputat the given index
-
input
-
input
Setsinputwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
input
Setsinputwith the given value.- Parameters:
value- the value- Returns:
this
-
input
public VkBuildPartitionedAccelerationStructureInfoNV input(Consumer<VkPartitionedAccelerationStructureInstancesInputNV> func) Acceptsinputwith the given function.- Parameters:
func- the function- Returns:
this
-
srcAccelerationStructureData
ReturnssrcAccelerationStructureDataat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
srcAccelerationStructureDataat the given index
-
srcAccelerationStructureData
public long srcAccelerationStructureData()ReturnssrcAccelerationStructureData.- Returns:
srcAccelerationStructureData
-
srcAccelerationStructureData
SetssrcAccelerationStructureDatawith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
srcAccelerationStructureData
SetssrcAccelerationStructureDatawith the given value.- Parameters:
value- the value- Returns:
this
-
dstAccelerationStructureData
ReturnsdstAccelerationStructureDataat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
dstAccelerationStructureDataat the given index
-
dstAccelerationStructureData
public long dstAccelerationStructureData()ReturnsdstAccelerationStructureData.- Returns:
dstAccelerationStructureData
-
dstAccelerationStructureData
SetsdstAccelerationStructureDatawith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
dstAccelerationStructureData
SetsdstAccelerationStructureDatawith the given value.- Parameters:
value- the value- Returns:
this
-
scratchData
ReturnsscratchDataat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
scratchDataat the given index
-
scratchData
public long scratchData()ReturnsscratchData.- Returns:
scratchData
-
scratchData
SetsscratchDatawith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
scratchData
SetsscratchDatawith the given value.- Parameters:
value- the value- Returns:
this
-
srcInfos
ReturnssrcInfosat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
srcInfosat the given index
-
srcInfos
public long srcInfos()ReturnssrcInfos.- Returns:
srcInfos
-
srcInfos
SetssrcInfoswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
srcInfos
SetssrcInfoswith the given value.- Parameters:
value- the value- Returns:
this
-
srcInfosCount
ReturnssrcInfosCountat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
srcInfosCountat the given index
-
srcInfosCount
public long srcInfosCount()ReturnssrcInfosCount.- Returns:
srcInfosCount
-
srcInfosCount
SetssrcInfosCountwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
srcInfosCount
SetssrcInfosCountwith 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) VisitsVkBuildPartitionedAccelerationStructureInfoNVbuffer 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) ReturnssTypeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
sTypeat the given index
-
sTypeAt
SetssTypewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
pNextAt
ReturnspNextat the given index.- Parameters:
index- the index of the struct buffer- Returns:
pNextat the given index
-
pNextAt
SetspNextwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
inputAt
Returnsinputat the given index.- Parameters:
index- the index of the struct buffer- Returns:
inputat the given index
-
inputAt
Setsinputwith 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) Acceptsinputwith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-
srcAccelerationStructureDataAt
public long srcAccelerationStructureDataAt(long index) ReturnssrcAccelerationStructureDataat the given index.- Parameters:
index- the index of the struct buffer- Returns:
srcAccelerationStructureDataat the given index
-
srcAccelerationStructureDataAt
public VkBuildPartitionedAccelerationStructureInfoNV srcAccelerationStructureDataAt(long index, long value) SetssrcAccelerationStructureDatawith 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) ReturnsdstAccelerationStructureDataat the given index.- Parameters:
index- the index of the struct buffer- Returns:
dstAccelerationStructureDataat the given index
-
dstAccelerationStructureDataAt
public VkBuildPartitionedAccelerationStructureInfoNV dstAccelerationStructureDataAt(long index, long value) SetsdstAccelerationStructureDatawith 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) ReturnsscratchDataat the given index.- Parameters:
index- the index of the struct buffer- Returns:
scratchDataat the given index
-
scratchDataAt
SetsscratchDatawith 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) ReturnssrcInfosat the given index.- Parameters:
index- the index of the struct buffer- Returns:
srcInfosat the given index
-
srcInfosAt
SetssrcInfoswith 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) ReturnssrcInfosCountat the given index.- Parameters:
index- the index of the struct buffer- Returns:
srcInfosCountat the given index
-
srcInfosCountAt
SetssrcInfosCountwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-