Class VkWriteDescriptorSetAccelerationStructureKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkWriteDescriptorSetAccelerationStructureKHR
- All Implemented Interfaces:
Addressable
Represents VkWriteDescriptorSetAccelerationStructureKHR.
Layout
struct VkWriteDescriptorSetAccelerationStructureKHR {
(int) VkStructureType sType;
const void* pNext;
uint32_t accelerationStructureCount;
const VkAccelerationStructureKHR* pAccelerationStructures;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkWriteDescriptorSetAccelerationStructureKHR.static final MemoryLayoutThe memory layout ofaccelerationStructureCount.static final MemoryLayoutThe memory layout ofpAccelerationStructures.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofsType.static final longThe byte offset ofaccelerationStructureCount.static final longThe byte offset ofpAccelerationStructures.static final longThe byte offset ofpNext.static final longThe byte offset ofsType.static final VarHandleTheVarHandleofaccelerationStructureCountof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofpAccelerationStructuresof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkWriteDescriptorSetAccelerationStructureKHR(MemorySegment segment, long elementCount) CreatesVkWriteDescriptorSetAccelerationStructureKHRwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionintReturnsaccelerationStructureCount.accelerationStructureCount(int value) SetsaccelerationStructureCountwith the given value.static intaccelerationStructureCount(MemorySegment segment, long index) ReturnsaccelerationStructureCountat the given index.static voidaccelerationStructureCount(MemorySegment segment, long index, int value) SetsaccelerationStructureCountwith the given value at the given index.intaccelerationStructureCountAt(long index) ReturnsaccelerationStructureCountat the given index.accelerationStructureCountAt(long index, int value) SetsaccelerationStructureCountwith the given value at the given index.alloc(SegmentAllocator allocator) Allocates aVkWriteDescriptorSetAccelerationStructureKHRwith the given segment allocator.alloc(SegmentAllocator allocator, long count) Allocates aVkWriteDescriptorSetAccelerationStructureKHRwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkWriteDescriptorSetAccelerationStructureKHR.asSlice(long index, long count) Creates a slice ofVkWriteDescriptorSetAccelerationStructureKHR.at(long index, Consumer<VkWriteDescriptorSetAccelerationStructureKHR> func) VisitsVkWriteDescriptorSetAccelerationStructureKHRbuffer at the given index.Copies from the given source.of(MemorySegment segment) CreatesVkWriteDescriptorSetAccelerationStructureKHRwith the given segment.ofNative(MemorySegment segment) CreatesVkWriteDescriptorSetAccelerationStructureKHRwith the given segment.ofNative(MemorySegment segment, long count) CreatesVkWriteDescriptorSetAccelerationStructureKHRwith the given segment.ReturnspAccelerationStructures.SetspAccelerationStructureswith the given value.static MemorySegmentpAccelerationStructures(MemorySegment segment, long index) ReturnspAccelerationStructuresat the given index.static voidpAccelerationStructures(MemorySegment segment, long index, MemorySegment value) SetspAccelerationStructureswith the given value at the given index.pAccelerationStructuresAt(long index) ReturnspAccelerationStructuresat the given index.pAccelerationStructuresAt(long index, MemorySegment value) SetspAccelerationStructureswith the given value at the given index.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.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 ofVkWriteDescriptorSetAccelerationStructureKHR. -
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_accelerationStructureCount
public static final long OFFSET_accelerationStructureCountThe byte offset ofaccelerationStructureCount. -
LAYOUT_accelerationStructureCount
The memory layout ofaccelerationStructureCount. -
VH_accelerationStructureCount
-
OFFSET_pAccelerationStructures
public static final long OFFSET_pAccelerationStructuresThe byte offset ofpAccelerationStructures. -
LAYOUT_pAccelerationStructures
The memory layout ofpAccelerationStructures. -
VH_pAccelerationStructures
-
-
Constructor Details
-
VkWriteDescriptorSetAccelerationStructureKHR
CreatesVkWriteDescriptorSetAccelerationStructureKHRwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkWriteDescriptorSetAccelerationStructureKHRwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkWriteDescriptorSetAccelerationStructureKHRwith 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 VkWriteDescriptorSetAccelerationStructureKHR ofNative(MemorySegment segment, long count) Creates
VkWriteDescriptorSetAccelerationStructureKHRwith 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 aVkWriteDescriptorSetAccelerationStructureKHRwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkWriteDescriptorSetAccelerationStructureKHR
-
alloc
public static VkWriteDescriptorSetAccelerationStructureKHR alloc(SegmentAllocator allocator, long count) Allocates aVkWriteDescriptorSetAccelerationStructureKHRwith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkWriteDescriptorSetAccelerationStructureKHR
-
copyFrom
public VkWriteDescriptorSetAccelerationStructureKHR copyFrom(VkWriteDescriptorSetAccelerationStructureKHR 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
-
accelerationStructureCount
ReturnsaccelerationStructureCountat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
accelerationStructureCountat the given index
-
accelerationStructureCount
public int accelerationStructureCount()ReturnsaccelerationStructureCount.- Returns:
accelerationStructureCount
-
accelerationStructureCount
SetsaccelerationStructureCountwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
accelerationStructureCount
SetsaccelerationStructureCountwith the given value.- Parameters:
value- the value- Returns:
this
-
pAccelerationStructures
ReturnspAccelerationStructuresat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
pAccelerationStructuresat the given index
-
pAccelerationStructures
ReturnspAccelerationStructures.- Returns:
pAccelerationStructures
-
pAccelerationStructures
SetspAccelerationStructureswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
pAccelerationStructures
SetspAccelerationStructureswith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkWriteDescriptorSetAccelerationStructureKHR.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkWriteDescriptorSetAccelerationStructureKHR
-
asSlice
Creates a slice ofVkWriteDescriptorSetAccelerationStructureKHR.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkWriteDescriptorSetAccelerationStructureKHR
-
at
public VkWriteDescriptorSetAccelerationStructureKHR at(long index, Consumer<VkWriteDescriptorSetAccelerationStructureKHR> func) VisitsVkWriteDescriptorSetAccelerationStructureKHRbuffer 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
-
accelerationStructureCountAt
public int accelerationStructureCountAt(long index) ReturnsaccelerationStructureCountat the given index.- Parameters:
index- the index of the struct buffer- Returns:
accelerationStructureCountat the given index
-
accelerationStructureCountAt
public VkWriteDescriptorSetAccelerationStructureKHR accelerationStructureCountAt(long index, int value) SetsaccelerationStructureCountwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
pAccelerationStructuresAt
ReturnspAccelerationStructuresat the given index.- Parameters:
index- the index of the struct buffer- Returns:
pAccelerationStructuresat the given index
-
pAccelerationStructuresAt
public VkWriteDescriptorSetAccelerationStructureKHR pAccelerationStructuresAt(long index, MemorySegment value) SetspAccelerationStructureswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-