Class VkAccelerationStructureGeometryDataKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.union.VkAccelerationStructureGeometryDataKHR
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkAccelerationStructureGeometryDataKHR.Buffer
public sealed class VkAccelerationStructureGeometryDataKHR
extends GroupType
permits VkAccelerationStructureGeometryDataKHR.Buffer
Layout
union VkAccelerationStructureGeometryDataKHR {
(struct VkAccelerationStructureGeometryTrianglesDataKHR) VkAccelerationStructureGeometryTrianglesDataKHR triangles;
(struct VkAccelerationStructureGeometryAabbsDataKHR) VkAccelerationStructureGeometryAabbsDataKHR aabbs;
(struct VkAccelerationStructureGeometryInstancesDataKHR) VkAccelerationStructureGeometryInstancesDataKHR instances;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A buffer ofVkAccelerationStructureGeometryDataKHR
. -
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
ConstructorsConstructorDescriptionCreatesVkAccelerationStructureGeometryDataKHR
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.alloc
(SegmentAllocator allocator) Allocates aVkAccelerationStructureGeometryDataKHR
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkAccelerationStructureGeometryDataKHR
with the given segment allocator and count.asBuffer()
Converts this instance to a buffer.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.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.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.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 segment
-
-
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
public static VkAccelerationStructureGeometryDataKHR.Buffer ofNative(MemorySegment segment, long count) 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
public static VkAccelerationStructureGeometryDataKHR.Buffer alloc(SegmentAllocator allocator, long count) 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
-
asBuffer
Converts this instance to a buffer.- Returns:
- the 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
-
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
-
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
-