Class VkAccelerationStructureGeometryDataKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.union.VkAccelerationStructureGeometryDataKHR
- All Implemented Interfaces:
Addressable
Represents VkAccelerationStructureGeometryDataKHR.
Layout
union VkAccelerationStructureGeometryDataKHR {
(struct VkAccelerationStructureGeometryTrianglesDataKHR) VkAccelerationStructureGeometryTrianglesDataKHR triangles;
(struct VkAccelerationStructureGeometryAabbsDataKHR) VkAccelerationStructureGeometryAabbsDataKHR aabbs;
(struct VkAccelerationStructureGeometryInstancesDataKHR) VkAccelerationStructureGeometryInstancesDataKHR instances;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UnionLayoutThe union layout ofVkAccelerationStructureGeometryDataKHR.static final MemoryLayoutThe memory layout ofaabbs.static final MemoryLayoutThe memory layout ofinstances.static final MemoryLayoutThe memory layout oftriangles.static final longThe byte offset ofaabbs.static final longThe byte offset ofinstances.static final longThe byte offset oftriangles. -
Constructor Summary
ConstructorsConstructorDescriptionVkAccelerationStructureGeometryDataKHR(MemorySegment segment, long elementCount) CreatesVkAccelerationStructureGeometryDataKHRwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionaabbs()Returnsaabbs.aabbs(MemorySegment value) Setsaabbswith the given value.static MemorySegmentaabbs(MemorySegment segment, long index) Returnsaabbsat the given index.static voidaabbs(MemorySegment segment, long index, MemorySegment value) Setsaabbswith the given value at the given index.Acceptsaabbswith the given function.aabbsAt(long index) Returnsaabbsat the given index.aabbsAt(long index, MemorySegment value) Setsaabbswith the given value at the given index.aabbsAt(long index, Consumer<VkAccelerationStructureGeometryAabbsDataKHR> func) Acceptsaabbswith the given function.alloc(SegmentAllocator allocator) Allocates aVkAccelerationStructureGeometryDataKHRwith the given segment allocator.alloc(SegmentAllocator allocator, long count) Allocates aVkAccelerationStructureGeometryDataKHRwith 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) VisitsVkAccelerationStructureGeometryDataKHRbuffer at the given index.Copies from the given source.Returnsinstances.instances(MemorySegment value) Setsinstanceswith the given value.static MemorySegmentinstances(MemorySegment segment, long index) Returnsinstancesat the given index.static voidinstances(MemorySegment segment, long index, MemorySegment value) Setsinstanceswith the given value at the given index.Acceptsinstanceswith the given function.instancesAt(long index) Returnsinstancesat the given index.instancesAt(long index, MemorySegment value) Setsinstanceswith the given value at the given index.instancesAt(long index, Consumer<VkAccelerationStructureGeometryInstancesDataKHR> func) Acceptsinstanceswith the given function.of(MemorySegment segment) CreatesVkAccelerationStructureGeometryDataKHRwith the given segment.ofNative(MemorySegment segment) CreatesVkAccelerationStructureGeometryDataKHRwith the given segment.ofNative(MemorySegment segment, long count) CreatesVkAccelerationStructureGeometryDataKHRwith the given segment.reinterpret(long count) Reinterprets this buffer with the given count.Returnstriangles.triangles(MemorySegment value) Setstriangleswith the given value.static MemorySegmenttriangles(MemorySegment segment, long index) Returnstrianglesat the given index.static voidtriangles(MemorySegment segment, long index, MemorySegment value) Setstriangleswith the given value at the given index.Acceptstriangleswith the given function.trianglesAt(long index) Returnstrianglesat the given index.trianglesAt(long index, MemorySegment value) Setstriangleswith the given value at the given index.trianglesAt(long index, Consumer<VkAccelerationStructureGeometryTrianglesDataKHR> func) Acceptstriangleswith the given function.Methods inherited from class 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
CreatesVkAccelerationStructureGeometryDataKHRwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this union buffer
-
-
Method Details
-
of
CreatesVkAccelerationStructureGeometryDataKHRwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkAccelerationStructureGeometryDataKHRwith 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
VkAccelerationStructureGeometryDataKHRwith 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 aVkAccelerationStructureGeometryDataKHRwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkAccelerationStructureGeometryDataKHR
-
alloc
Allocates aVkAccelerationStructureGeometryDataKHRwith 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
Returnstrianglesat the given index.- Parameters:
segment- the segment of the unionindex- the index of the union buffer- Returns:
trianglesat the given index
-
triangles
-
triangles
Setstriangleswith the given value at the given index.- Parameters:
segment- the segment of the unionindex- the index of the union buffervalue- the value
-
triangles
Setstriangleswith the given value.- Parameters:
value- the value- Returns:
this
-
triangles
public VkAccelerationStructureGeometryDataKHR triangles(Consumer<VkAccelerationStructureGeometryTrianglesDataKHR> func) Acceptstriangleswith the given function.- Parameters:
func- the function- Returns:
this
-
aabbs
Returnsaabbsat the given index.- Parameters:
segment- the segment of the unionindex- the index of the union buffer- Returns:
aabbsat the given index
-
aabbs
-
aabbs
Setsaabbswith the given value at the given index.- Parameters:
segment- the segment of the unionindex- the index of the union buffervalue- the value
-
aabbs
Setsaabbswith the given value.- Parameters:
value- the value- Returns:
this
-
aabbs
public VkAccelerationStructureGeometryDataKHR aabbs(Consumer<VkAccelerationStructureGeometryAabbsDataKHR> func) Acceptsaabbswith the given function.- Parameters:
func- the function- Returns:
this
-
instances
Returnsinstancesat the given index.- Parameters:
segment- the segment of the unionindex- the index of the union buffer- Returns:
instancesat the given index
-
instances
-
instances
Setsinstanceswith the given value at the given index.- Parameters:
segment- the segment of the unionindex- the index of the union buffervalue- the value
-
instances
Setsinstanceswith the given value.- Parameters:
value- the value- Returns:
this
-
instances
public VkAccelerationStructureGeometryDataKHR instances(Consumer<VkAccelerationStructureGeometryInstancesDataKHR> func) Acceptsinstanceswith 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) VisitsVkAccelerationStructureGeometryDataKHRbuffer at the given index.- Parameters:
index- the index of this bufferfunc- the function to run with the slice of this buffer- Returns:
this
-
trianglesAt
Returnstrianglesat the given index.- Parameters:
index- the index of the union buffer- Returns:
trianglesat the given index
-
trianglesAt
Setstriangleswith 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) Acceptstriangleswith the given function.- Parameters:
index- the index of the union bufferfunc- the function- Returns:
this
-
aabbsAt
Returnsaabbsat the given index.- Parameters:
index- the index of the union buffer- Returns:
aabbsat the given index
-
aabbsAt
Setsaabbswith 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) Acceptsaabbswith the given function.- Parameters:
index- the index of the union bufferfunc- the function- Returns:
this
-
instancesAt
Returnsinstancesat the given index.- Parameters:
index- the index of the union buffer- Returns:
instancesat the given index
-
instancesAt
Setsinstanceswith 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) Acceptsinstanceswith the given function.- Parameters:
index- the index of the union bufferfunc- the function- Returns:
this
-