Class VkAccelerationStructureGeometryDataKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.union.VkAccelerationStructureGeometryDataKHR
- All Implemented Interfaces:
Addressable
Layout
union VkAccelerationStructureGeometryDataKHR {
(struct VkAccelerationStructureGeometryTrianglesDataKHR) VkAccelerationStructureGeometryTrianglesDataKHR triangles;
(struct VkAccelerationStructureGeometryAabbsDataKHR) VkAccelerationStructureGeometryAabbsDataKHR aabbs;
(struct VkAccelerationStructureGeometryInstancesDataKHR) VkAccelerationStructureGeometryInstancesDataKHR instances;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The union layout ofVkAccelerationStructureGeometryDataKHR
.static final MemoryLayout
The memory layout ofaabbs
.static final MemoryLayout
The memory layout ofinstances
.static final MemoryLayout
The memory layout oftriangles
.static final long
The byte offset ofaabbs
.static final long
The byte offset ofinstances
.static final long
The byte offset oftriangles
. -
Constructor Summary
ConstructorsConstructorDescriptionVkAccelerationStructureGeometryDataKHR
(MemorySegment segment, long elementCount) CreatesVkAccelerationStructureGeometryDataKHR
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionaabbs()
Returnsaabbs
.aabbs
(MemorySegment value) Setsaabbs
with the given value.static MemorySegment
aabbs
(MemorySegment segment, long index) Returnsaabbs
at the given index.static void
aabbs
(MemorySegment segment, long index, MemorySegment value) Setsaabbs
with the given value at the given index.Acceptsaabbs
with the given function.aabbsAt
(long index) Returnsaabbs
at the given index.aabbsAt
(long index, MemorySegment value) Setsaabbs
with the given value at the given index.aabbsAt
(long index, Consumer<VkAccelerationStructureGeometryAabbsDataKHR> func) Acceptsaabbs
with the given function.alloc
(SegmentAllocator allocator) Allocates aVkAccelerationStructureGeometryDataKHR
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkAccelerationStructureGeometryDataKHR
with the given segment allocator and count.asSlice
(long index) Creates a slice ofVkAccelerationStructureGeometryDataKHR
.asSlice
(long index, long count) Creates a slice ofVkAccelerationStructureGeometryDataKHR
.at
(long index, Consumer<VkAccelerationStructureGeometryDataKHR> func) VisitsVkAccelerationStructureGeometryDataKHR
buffer at the given index.Copies from the given source.Returnsinstances
.instances
(MemorySegment value) Setsinstances
with the given value.static MemorySegment
instances
(MemorySegment segment, long index) Returnsinstances
at the given index.static void
instances
(MemorySegment segment, long index, MemorySegment value) Setsinstances
with the given value at the given index.Acceptsinstances
with the given function.instancesAt
(long index) Returnsinstances
at the given index.instancesAt
(long index, MemorySegment value) Setsinstances
with the given value at the given index.instancesAt
(long index, Consumer<VkAccelerationStructureGeometryInstancesDataKHR> func) Acceptsinstances
with the given function.of
(MemorySegment segment) CreatesVkAccelerationStructureGeometryDataKHR
with the given segment.ofNative
(MemorySegment segment) CreatesVkAccelerationStructureGeometryDataKHR
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkAccelerationStructureGeometryDataKHR
with the given segment.reinterpret
(long count) Reinterprets this buffer with the given count.Returnstriangles
.triangles
(MemorySegment value) Setstriangles
with the given value.static MemorySegment
triangles
(MemorySegment segment, long index) Returnstriangles
at the given index.static void
triangles
(MemorySegment segment, long index, MemorySegment value) Setstriangles
with the given value at the given index.Acceptstriangles
with the given function.trianglesAt
(long index) Returnstriangles
at the given index.trianglesAt
(long index, MemorySegment value) Setstriangles
with the given value at the given index.trianglesAt
(long index, Consumer<VkAccelerationStructureGeometryTrianglesDataKHR> func) Acceptstriangles
with the given function.Methods inherited from class overrungl.struct.GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The union layout ofVkAccelerationStructureGeometryDataKHR
. -
OFFSET_triangles
public static final long OFFSET_trianglesThe byte offset oftriangles
. -
LAYOUT_triangles
The memory layout oftriangles
. -
OFFSET_aabbs
public static final long OFFSET_aabbsThe byte offset ofaabbs
. -
LAYOUT_aabbs
The memory layout ofaabbs
. -
OFFSET_instances
public static final long OFFSET_instancesThe byte offset ofinstances
. -
LAYOUT_instances
The memory layout ofinstances
.
-
-
Constructor Details
-
VkAccelerationStructureGeometryDataKHR
CreatesVkAccelerationStructureGeometryDataKHR
with the given segment.- Parameters:
segment
- the memory segmentelementCount
- the element count of this union buffer
-
-
Method Details
-
of
CreatesVkAccelerationStructureGeometryDataKHR
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkAccelerationStructureGeometryDataKHR
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
Creates
VkAccelerationStructureGeometryDataKHR
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 aVkAccelerationStructureGeometryDataKHR
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkAccelerationStructureGeometryDataKHR
-
alloc
Allocates aVkAccelerationStructureGeometryDataKHR
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkAccelerationStructureGeometryDataKHR
-
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
-
triangles
Returnstriangles
at the given index.- Parameters:
segment
- the segment of the unionindex
- the index of the union buffer- Returns:
triangles
at the given index
-
triangles
-
triangles
Setstriangles
with the given value at the given index.- Parameters:
segment
- the segment of the unionindex
- the index of the union buffervalue
- the value
-
triangles
Setstriangles
with the given value.- Parameters:
value
- the value- Returns:
this
-
triangles
public VkAccelerationStructureGeometryDataKHR triangles(Consumer<VkAccelerationStructureGeometryTrianglesDataKHR> func) Acceptstriangles
with the given function.- Parameters:
func
- the function- Returns:
this
-
aabbs
Returnsaabbs
at the given index.- Parameters:
segment
- the segment of the unionindex
- the index of the union buffer- Returns:
aabbs
at the given index
-
aabbs
-
aabbs
Setsaabbs
with the given value at the given index.- Parameters:
segment
- the segment of the unionindex
- the index of the union buffervalue
- the value
-
aabbs
Setsaabbs
with the given value.- Parameters:
value
- the value- Returns:
this
-
aabbs
public VkAccelerationStructureGeometryDataKHR aabbs(Consumer<VkAccelerationStructureGeometryAabbsDataKHR> func) Acceptsaabbs
with the given function.- Parameters:
func
- the function- Returns:
this
-
instances
Returnsinstances
at the given index.- Parameters:
segment
- the segment of the unionindex
- the index of the union buffer- Returns:
instances
at the given index
-
instances
-
instances
Setsinstances
with the given value at the given index.- Parameters:
segment
- the segment of the unionindex
- the index of the union buffervalue
- the value
-
instances
Setsinstances
with the given value.- Parameters:
value
- the value- Returns:
this
-
instances
public VkAccelerationStructureGeometryDataKHR instances(Consumer<VkAccelerationStructureGeometryInstancesDataKHR> func) Acceptsinstances
with the given function.- Parameters:
func
- the function- Returns:
this
-
asSlice
Creates a slice ofVkAccelerationStructureGeometryDataKHR
.- Parameters:
index
- the index of the union buffer- Returns:
- the slice of
VkAccelerationStructureGeometryDataKHR
-
asSlice
Creates a slice ofVkAccelerationStructureGeometryDataKHR
.- Parameters:
index
- the index of the union buffercount
- the count- Returns:
- the slice of
VkAccelerationStructureGeometryDataKHR
-
at
public VkAccelerationStructureGeometryDataKHR at(long index, Consumer<VkAccelerationStructureGeometryDataKHR> func) VisitsVkAccelerationStructureGeometryDataKHR
buffer at the given index.- Parameters:
index
- the index of this bufferfunc
- the function to run with the slice of this buffer- Returns:
this
-
trianglesAt
Returnstriangles
at the given index.- Parameters:
index
- the index of the union buffer- Returns:
triangles
at the given index
-
trianglesAt
Setstriangles
with the given value at the given index.- Parameters:
index
- the index of the union buffervalue
- the value- Returns:
this
-
trianglesAt
public VkAccelerationStructureGeometryDataKHR trianglesAt(long index, Consumer<VkAccelerationStructureGeometryTrianglesDataKHR> func) Acceptstriangles
with the given function.- Parameters:
index
- the index of the union bufferfunc
- the function- Returns:
this
-
aabbsAt
Returnsaabbs
at the given index.- Parameters:
index
- the index of the union buffer- Returns:
aabbs
at the given index
-
aabbsAt
Setsaabbs
with the given value at the given index.- Parameters:
index
- the index of the union buffervalue
- the value- Returns:
this
-
aabbsAt
public VkAccelerationStructureGeometryDataKHR aabbsAt(long index, Consumer<VkAccelerationStructureGeometryAabbsDataKHR> func) Acceptsaabbs
with the given function.- Parameters:
index
- the index of the union bufferfunc
- the function- Returns:
this
-
instancesAt
Returnsinstances
at the given index.- Parameters:
index
- the index of the union buffer- Returns:
instances
at the given index
-
instancesAt
Setsinstances
with the given value at the given index.- Parameters:
index
- the index of the union buffervalue
- the value- Returns:
this
-
instancesAt
public VkAccelerationStructureGeometryDataKHR instancesAt(long index, Consumer<VkAccelerationStructureGeometryInstancesDataKHR> func) Acceptsinstances
with the given function.- Parameters:
index
- the index of the union bufferfunc
- the function- Returns:
this
-