Class VkAccelerationStructureCreateInfoKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkAccelerationStructureCreateInfoKHR
- All Implemented Interfaces:
Addressable
Represents VkAccelerationStructureCreateInfoKHR.
Layout
struct VkAccelerationStructureCreateInfoKHR {
(int) VkStructureType sType;
const void* pNext;
((uint32_t) VkFlags) VkAccelerationStructureCreateFlagsKHR createFlags;
(uint64_t) VkBuffer buffer;
(uint64_t) VkDeviceSize offset;
(uint64_t) VkDeviceSize size;
(int) VkAccelerationStructureTypeKHR type;
(uint64_t) VkDeviceAddress deviceAddress;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkAccelerationStructureCreateInfoKHR.static final MemoryLayoutThe memory layout ofbuffer.static final MemoryLayoutThe memory layout ofcreateFlags.static final MemoryLayoutThe memory layout ofdeviceAddress.static final MemoryLayoutThe memory layout ofoffset.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofsize.static final MemoryLayoutThe memory layout ofsType.static final MemoryLayoutThe memory layout oftype.static final longThe byte offset ofbuffer.static final longThe byte offset ofcreateFlags.static final longThe byte offset ofdeviceAddress.static final longThe byte offset ofoffset.static final longThe byte offset ofpNext.static final longThe byte offset ofsize.static final longThe byte offset ofsType.static final longThe byte offset oftype.static final VarHandlestatic final VarHandleTheVarHandleofcreateFlagsof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofdeviceAddressof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandlestatic final VarHandlestatic final VarHandlestatic final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkAccelerationStructureCreateInfoKHR(MemorySegment segment, long elementCount) CreatesVkAccelerationStructureCreateInfoKHRwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc(SegmentAllocator allocator) Allocates aVkAccelerationStructureCreateInfoKHRwith the given segment allocator.alloc(SegmentAllocator allocator, long count) Allocates aVkAccelerationStructureCreateInfoKHRwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkAccelerationStructureCreateInfoKHR.asSlice(long index, long count) Creates a slice ofVkAccelerationStructureCreateInfoKHR.at(long index, Consumer<VkAccelerationStructureCreateInfoKHR> func) VisitsVkAccelerationStructureCreateInfoKHRbuffer at the given index.longbuffer()Returnsbuffer.buffer(long value) Setsbufferwith the given value.static longbuffer(MemorySegment segment, long index) Returnsbufferat the given index.static voidbuffer(MemorySegment segment, long index, long value) Setsbufferwith the given value at the given index.longbufferAt(long index) Returnsbufferat the given index.bufferAt(long index, long value) Setsbufferwith the given value at the given index.Copies from the given source.intReturnscreateFlags.createFlags(int value) SetscreateFlagswith the given value.static intcreateFlags(MemorySegment segment, long index) ReturnscreateFlagsat the given index.static voidcreateFlags(MemorySegment segment, long index, int value) SetscreateFlagswith the given value at the given index.intcreateFlagsAt(long index) ReturnscreateFlagsat the given index.createFlagsAt(long index, int value) SetscreateFlagswith the given value at the given index.longReturnsdeviceAddress.deviceAddress(long value) SetsdeviceAddresswith the given value.static longdeviceAddress(MemorySegment segment, long index) ReturnsdeviceAddressat the given index.static voiddeviceAddress(MemorySegment segment, long index, long value) SetsdeviceAddresswith the given value at the given index.longdeviceAddressAt(long index) ReturnsdeviceAddressat the given index.deviceAddressAt(long index, long value) SetsdeviceAddresswith the given value at the given index.of(MemorySegment segment) CreatesVkAccelerationStructureCreateInfoKHRwith the given segment.longoffset()Returnsoffset.offset(long value) Setsoffsetwith the given value.static longoffset(MemorySegment segment, long index) Returnsoffsetat the given index.static voidoffset(MemorySegment segment, long index, long value) Setsoffsetwith the given value at the given index.longoffsetAt(long index) Returnsoffsetat the given index.offsetAt(long index, long value) Setsoffsetwith the given value at the given index.ofNative(MemorySegment segment) CreatesVkAccelerationStructureCreateInfoKHRwith the given segment.ofNative(MemorySegment segment, long count) CreatesVkAccelerationStructureCreateInfoKHRwith 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.longsize()Returnssize.size(long value) Setssizewith the given value.static longsize(MemorySegment segment, long index) Returnssizeat the given index.static voidsize(MemorySegment segment, long index, long value) Setssizewith the given value at the given index.longsizeAt(long index) Returnssizeat the given index.sizeAt(long index, long value) Setssizewith 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.inttype()Returnstype.type(int value) Setstypewith the given value.static inttype(MemorySegment segment, long index) Returnstypeat the given index.static voidtype(MemorySegment segment, long index, int value) Setstypewith the given value at the given index.inttypeAt(long index) Returnstypeat the given index.typeAt(long index, int value) Setstypewith the given value at the given index.Methods inherited from class GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkAccelerationStructureCreateInfoKHR. -
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_createFlags
public static final long OFFSET_createFlagsThe byte offset ofcreateFlags. -
LAYOUT_createFlags
The memory layout ofcreateFlags. -
VH_createFlags
-
OFFSET_buffer
public static final long OFFSET_bufferThe byte offset ofbuffer. -
LAYOUT_buffer
The memory layout ofbuffer. -
VH_buffer
-
OFFSET_offset
public static final long OFFSET_offsetThe byte offset ofoffset. -
LAYOUT_offset
The memory layout ofoffset. -
VH_offset
-
OFFSET_size
public static final long OFFSET_sizeThe byte offset ofsize. -
LAYOUT_size
The memory layout ofsize. -
VH_size
-
OFFSET_type
public static final long OFFSET_typeThe byte offset oftype. -
LAYOUT_type
The memory layout oftype. -
VH_type
-
OFFSET_deviceAddress
public static final long OFFSET_deviceAddressThe byte offset ofdeviceAddress. -
LAYOUT_deviceAddress
The memory layout ofdeviceAddress. -
VH_deviceAddress
-
-
Constructor Details
-
VkAccelerationStructureCreateInfoKHR
CreatesVkAccelerationStructureCreateInfoKHRwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkAccelerationStructureCreateInfoKHRwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkAccelerationStructureCreateInfoKHRwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkAccelerationStructureCreateInfoKHRwith 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 aVkAccelerationStructureCreateInfoKHRwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkAccelerationStructureCreateInfoKHR
-
alloc
Allocates aVkAccelerationStructureCreateInfoKHRwith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkAccelerationStructureCreateInfoKHR
-
copyFrom
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
-
createFlags
ReturnscreateFlagsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
createFlagsat the given index
-
createFlags
public int createFlags()ReturnscreateFlags.- Returns:
createFlags
-
createFlags
SetscreateFlagswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
createFlags
SetscreateFlagswith the given value.- Parameters:
value- the value- Returns:
this
-
buffer
Returnsbufferat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
bufferat the given index
-
buffer
public long buffer()Returnsbuffer.- Returns:
buffer
-
buffer
Setsbufferwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
buffer
Setsbufferwith the given value.- Parameters:
value- the value- Returns:
this
-
offset
Returnsoffsetat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
offsetat the given index
-
offset
public long offset()Returnsoffset.- Returns:
offset
-
offset
Setsoffsetwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
offset
Setsoffsetwith the given value.- Parameters:
value- the value- Returns:
this
-
size
Returnssizeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
sizeat the given index
-
size
public long size()Returnssize.- Returns:
size
-
size
Setssizewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
size
Setssizewith the given value.- Parameters:
value- the value- Returns:
this
-
type
Returnstypeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
typeat the given index
-
type
public int type()Returnstype.- Returns:
type
-
type
Setstypewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
type
Setstypewith the given value.- Parameters:
value- the value- Returns:
this
-
deviceAddress
ReturnsdeviceAddressat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
deviceAddressat the given index
-
deviceAddress
public long deviceAddress()ReturnsdeviceAddress.- Returns:
deviceAddress
-
deviceAddress
SetsdeviceAddresswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
deviceAddress
SetsdeviceAddresswith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkAccelerationStructureCreateInfoKHR.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkAccelerationStructureCreateInfoKHR
-
asSlice
Creates a slice ofVkAccelerationStructureCreateInfoKHR.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkAccelerationStructureCreateInfoKHR
-
at
public VkAccelerationStructureCreateInfoKHR at(long index, Consumer<VkAccelerationStructureCreateInfoKHR> func) VisitsVkAccelerationStructureCreateInfoKHRbuffer 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
-
createFlagsAt
public int createFlagsAt(long index) ReturnscreateFlagsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
createFlagsat the given index
-
createFlagsAt
SetscreateFlagswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
bufferAt
public long bufferAt(long index) Returnsbufferat the given index.- Parameters:
index- the index of the struct buffer- Returns:
bufferat the given index
-
bufferAt
Setsbufferwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
offsetAt
public long offsetAt(long index) Returnsoffsetat the given index.- Parameters:
index- the index of the struct buffer- Returns:
offsetat the given index
-
offsetAt
Setsoffsetwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
sizeAt
public long sizeAt(long index) Returnssizeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
sizeat the given index
-
sizeAt
Setssizewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
typeAt
public int typeAt(long index) Returnstypeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
typeat the given index
-
typeAt
Setstypewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
deviceAddressAt
public long deviceAddressAt(long index) ReturnsdeviceAddressat the given index.- Parameters:
index- the index of the struct buffer- Returns:
deviceAddressat the given index
-
deviceAddressAt
SetsdeviceAddresswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-