Class VkBuildPartitionedAccelerationStructureInfoNV
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.struct.VkBuildPartitionedAccelerationStructureInfoNV
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkBuildPartitionedAccelerationStructureInfoNV.Buffer
public sealed class VkBuildPartitionedAccelerationStructureInfoNV
extends GroupType
permits VkBuildPartitionedAccelerationStructureInfoNV.Buffer
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;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A buffer ofVkBuildPartitionedAccelerationStructureInfoNV
. -
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
ConstructorsConstructorDescriptionCreatesVkBuildPartitionedAccelerationStructureInfoNV
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.allocInit
(SegmentAllocator allocator, int sType) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.allocInit
(SegmentAllocator allocator, int sType, MemorySegment pNext) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.allocInit
(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.allocInit
(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.allocInit
(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData, long dstAccelerationStructureData) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.allocInit
(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData, long dstAccelerationStructureData, long scratchData) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.allocInit
(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData, long dstAccelerationStructureData, long scratchData, long srcInfos) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.allocInit
(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData, long dstAccelerationStructureData, long scratchData, long srcInfos, long srcInfosCount) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.asBuffer()
Converts this instance to a buffer.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.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.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.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
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
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
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.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.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 segment
-
-
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.Buffer 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.Buffer 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
-
allocInit
public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData, long dstAccelerationStructureData, long scratchData, long srcInfos, long srcInfosCount) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorsType
-sType
pNext
-pNext
input
-input
srcAccelerationStructureData
-srcAccelerationStructureData
dstAccelerationStructureData
-dstAccelerationStructureData
scratchData
-scratchData
srcInfos
-srcInfos
srcInfosCount
-srcInfosCount
- Returns:
- the allocated
VkBuildPartitionedAccelerationStructureInfoNV
-
allocInit
public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData, long dstAccelerationStructureData, long scratchData, long srcInfos) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorsType
-sType
pNext
-pNext
input
-input
srcAccelerationStructureData
-srcAccelerationStructureData
dstAccelerationStructureData
-dstAccelerationStructureData
scratchData
-scratchData
srcInfos
-srcInfos
- Returns:
- the allocated
VkBuildPartitionedAccelerationStructureInfoNV
-
allocInit
public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData, long dstAccelerationStructureData, long scratchData) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorsType
-sType
pNext
-pNext
input
-input
srcAccelerationStructureData
-srcAccelerationStructureData
dstAccelerationStructureData
-dstAccelerationStructureData
scratchData
-scratchData
- Returns:
- the allocated
VkBuildPartitionedAccelerationStructureInfoNV
-
allocInit
public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData, long dstAccelerationStructureData) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorsType
-sType
pNext
-pNext
input
-input
srcAccelerationStructureData
-srcAccelerationStructureData
dstAccelerationStructureData
-dstAccelerationStructureData
- Returns:
- the allocated
VkBuildPartitionedAccelerationStructureInfoNV
-
allocInit
public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input, long srcAccelerationStructureData) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorsType
-sType
pNext
-pNext
input
-input
srcAccelerationStructureData
-srcAccelerationStructureData
- Returns:
- the allocated
VkBuildPartitionedAccelerationStructureInfoNV
-
allocInit
public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext, MemorySegment input) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorsType
-sType
pNext
-pNext
input
-input
- Returns:
- the allocated
VkBuildPartitionedAccelerationStructureInfoNV
-
allocInit
public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType, MemorySegment pNext) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorsType
-sType
pNext
-pNext
- Returns:
- the allocated
VkBuildPartitionedAccelerationStructureInfoNV
-
allocInit
public static VkBuildPartitionedAccelerationStructureInfoNV allocInit(SegmentAllocator allocator, int sType) Allocates aVkBuildPartitionedAccelerationStructureInfoNV
with the given segment allocator and arguments like initializer list.- Parameters:
allocator
- the segment allocatorsType
-sType
- Returns:
- the allocated
VkBuildPartitionedAccelerationStructureInfoNV
-
copyFrom
public VkBuildPartitionedAccelerationStructureInfoNV copyFrom(VkBuildPartitionedAccelerationStructureInfoNV src) 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
-
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
-
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
-