Class VkAccelerationStructureCreateInfoKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkAccelerationStructureCreateInfoKHR
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkAccelerationStructureCreateInfoKHR.Buffer
public sealed class VkAccelerationStructureCreateInfoKHR
extends GroupType
permits VkAccelerationStructureCreateInfoKHR.Buffer
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;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A buffer ofVkAccelerationStructureCreateInfoKHR
. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkAccelerationStructureCreateInfoKHR
.static final MemoryLayout
The memory layout ofbuffer
.static final MemoryLayout
The memory layout ofcreateFlags
.static final MemoryLayout
The memory layout ofdeviceAddress
.static final MemoryLayout
The memory layout ofoffset
.static final MemoryLayout
The memory layout ofpNext
.static final MemoryLayout
The memory layout ofsize
.static final MemoryLayout
The memory layout ofsType
.static final MemoryLayout
The memory layout oftype
.static final long
The byte offset ofbuffer
.static final long
The byte offset ofcreateFlags
.static final long
The byte offset ofdeviceAddress
.static final long
The byte offset ofoffset
.static final long
The byte offset ofpNext
.static final long
The byte offset ofsize
.static final long
The byte offset ofsType
.static final long
The byte offset oftype
.static final VarHandle
static final VarHandle
TheVarHandle
ofcreateFlags
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofdeviceAddress
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
-
Constructor Summary
ConstructorsConstructorDescriptionCreatesVkAccelerationStructureCreateInfoKHR
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionalloc
(SegmentAllocator allocator) Allocates aVkAccelerationStructureCreateInfoKHR
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkAccelerationStructureCreateInfoKHR
with the given segment allocator and count.asBuffer()
Converts this instance to a buffer.long
buffer()
Returnsbuffer
.buffer
(long value) Setsbuffer
with the given value.static long
buffer
(MemorySegment segment, long index) Returnsbuffer
at the given index.static void
buffer
(MemorySegment segment, long index, long value) Setsbuffer
with the given value at the given index.Copies from the given source.int
ReturnscreateFlags
.createFlags
(int value) SetscreateFlags
with the given value.static int
createFlags
(MemorySegment segment, long index) ReturnscreateFlags
at the given index.static void
createFlags
(MemorySegment segment, long index, int value) SetscreateFlags
with the given value at the given index.long
ReturnsdeviceAddress
.deviceAddress
(long value) SetsdeviceAddress
with the given value.static long
deviceAddress
(MemorySegment segment, long index) ReturnsdeviceAddress
at the given index.static void
deviceAddress
(MemorySegment segment, long index, long value) SetsdeviceAddress
with the given value at the given index.of
(MemorySegment segment) CreatesVkAccelerationStructureCreateInfoKHR
with the given segment.long
offset()
Returnsoffset
.offset
(long value) Setsoffset
with the given value.static long
offset
(MemorySegment segment, long index) Returnsoffset
at the given index.static void
offset
(MemorySegment segment, long index, long value) Setsoffset
with the given value at the given index.ofNative
(MemorySegment segment) CreatesVkAccelerationStructureCreateInfoKHR
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkAccelerationStructureCreateInfoKHR
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
size()
Returnssize
.size
(long value) Setssize
with the given value.static long
size
(MemorySegment segment, long index) Returnssize
at the given index.static void
size
(MemorySegment segment, long index, long value) Setssize
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
type()
Returnstype
.type
(int value) Setstype
with the given value.static int
type
(MemorySegment segment, long index) Returnstype
at the given index.static void
type
(MemorySegment segment, long index, int value) Setstype
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 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
CreatesVkAccelerationStructureCreateInfoKHR
with the given segment.- Parameters:
segment
- the memory segment
-
-
Method Details
-
of
CreatesVkAccelerationStructureCreateInfoKHR
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkAccelerationStructureCreateInfoKHR
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 VkAccelerationStructureCreateInfoKHR.Buffer ofNative(MemorySegment segment, long count) Creates
VkAccelerationStructureCreateInfoKHR
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 aVkAccelerationStructureCreateInfoKHR
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkAccelerationStructureCreateInfoKHR
-
alloc
public static VkAccelerationStructureCreateInfoKHR.Buffer alloc(SegmentAllocator allocator, long count) Allocates aVkAccelerationStructureCreateInfoKHR
with 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
-
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
-
createFlags
ReturnscreateFlags
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
createFlags
at the given index
-
createFlags
public int createFlags()ReturnscreateFlags
.- Returns:
createFlags
-
createFlags
SetscreateFlags
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
createFlags
SetscreateFlags
with the given value.- Parameters:
value
- the value- Returns:
this
-
buffer
Returnsbuffer
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
buffer
at the given index
-
buffer
public long buffer()Returnsbuffer
.- Returns:
buffer
-
buffer
Setsbuffer
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
buffer
Setsbuffer
with the given value.- Parameters:
value
- the value- Returns:
this
-
offset
Returnsoffset
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
offset
at the given index
-
offset
public long offset()Returnsoffset
.- Returns:
offset
-
offset
Setsoffset
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
offset
Setsoffset
with the given value.- Parameters:
value
- the value- Returns:
this
-
size
Returnssize
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
size
at the given index
-
size
public long size()Returnssize
.- Returns:
size
-
size
Setssize
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
size
Setssize
with the given value.- Parameters:
value
- the value- Returns:
this
-
type
Returnstype
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
type
at the given index
-
type
public int type()Returnstype
.- Returns:
type
-
type
Setstype
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
type
Setstype
with the given value.- Parameters:
value
- the value- Returns:
this
-
deviceAddress
ReturnsdeviceAddress
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
deviceAddress
at the given index
-
deviceAddress
public long deviceAddress()ReturnsdeviceAddress
.- Returns:
deviceAddress
-
deviceAddress
SetsdeviceAddress
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
deviceAddress
SetsdeviceAddress
with the given value.- Parameters:
value
- the value- Returns:
this
-