Class VkClusterAccelerationStructureOpInputNV.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.union.VkClusterAccelerationStructureOpInputNV
overrungl.vulkan.nv.union.VkClusterAccelerationStructureOpInputNV.Buffer
- All Implemented Interfaces:
Addressable
- Enclosing class:
VkClusterAccelerationStructureOpInputNV
public static final class VkClusterAccelerationStructureOpInputNV.Buffer
extends VkClusterAccelerationStructureOpInputNV
A buffer of
VkClusterAccelerationStructureOpInputNV
.-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.vulkan.nv.union.VkClusterAccelerationStructureOpInputNV
VkClusterAccelerationStructureOpInputNV.Buffer
-
Field Summary
Fields inherited from class overrungl.vulkan.nv.union.VkClusterAccelerationStructureOpInputNV
LAYOUT, LAYOUT_pClustersBottomLevel, LAYOUT_pMoveObjects, LAYOUT_pTriangleClusters, OFFSET_pClustersBottomLevel, OFFSET_pMoveObjects, OFFSET_pTriangleClusters, VH_pClustersBottomLevel, VH_pMoveObjects, VH_pTriangleClusters
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesVkClusterAccelerationStructureOpInputNV.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionasSlice
(long index) Creates a slice ofVkClusterAccelerationStructureOpInputNV
.asSlice
(long index, long count) Creates a slice ofVkClusterAccelerationStructureOpInputNV
.long
Estimates the element count of this group type buffer.pClustersBottomLevelAt
(long index) ReturnspClustersBottomLevel
at the given index.pClustersBottomLevelAt
(long index, MemorySegment value) SetspClustersBottomLevel
with the given value at the given index.pMoveObjectsAt
(long index) ReturnspMoveObjects
at the given index.pMoveObjectsAt
(long index, MemorySegment value) SetspMoveObjects
with the given value at the given index.pTriangleClustersAt
(long index) ReturnspTriangleClusters
at the given index.pTriangleClustersAt
(long index, MemorySegment value) SetspTriangleClusters
with the given value at the given index.Methods inherited from class overrungl.vulkan.nv.union.VkClusterAccelerationStructureOpInputNV
alloc, alloc, allocWith_pClustersBottomLevel, allocWith_pMoveObjects, allocWith_pTriangleClusters, asBuffer, copyFrom, of, ofNative, ofNative, pClustersBottomLevel, pClustersBottomLevel, pClustersBottomLevel, pClustersBottomLevel, pMoveObjects, pMoveObjects, pMoveObjects, pMoveObjects, pTriangleClusters, pTriangleClusters, pTriangleClusters, pTriangleClusters
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesVkClusterAccelerationStructureOpInputNV.Buffer
with the given segment.- Parameters:
segment
- the memory segmentelementCount
- the element count
-
-
Method Details
-
estimateCount
public long estimateCount()Description copied from class:GroupType
Estimates the element count of this group type buffer.- Overrides:
estimateCount
in classGroupType
- Returns:
- the estimated element count of the group type buffer
-
asSlice
Creates a slice ofVkClusterAccelerationStructureOpInputNV
.- Parameters:
index
- the index of the union buffer- Returns:
- the slice of
VkClusterAccelerationStructureOpInputNV
-
asSlice
Creates a slice ofVkClusterAccelerationStructureOpInputNV
.- Parameters:
index
- the index of the union buffercount
- the count- Returns:
- the slice of
VkClusterAccelerationStructureOpInputNV
-
pClustersBottomLevelAt
ReturnspClustersBottomLevel
at the given index.- Parameters:
index
- the index of the union buffer- Returns:
pClustersBottomLevel
at the given index
-
pClustersBottomLevelAt
public VkClusterAccelerationStructureOpInputNV.Buffer pClustersBottomLevelAt(long index, MemorySegment value) SetspClustersBottomLevel
with the given value at the given index.- Parameters:
index
- the index of the union buffervalue
- the value- Returns:
this
-
pTriangleClustersAt
ReturnspTriangleClusters
at the given index.- Parameters:
index
- the index of the union buffer- Returns:
pTriangleClusters
at the given index
-
pTriangleClustersAt
public VkClusterAccelerationStructureOpInputNV.Buffer pTriangleClustersAt(long index, MemorySegment value) SetspTriangleClusters
with the given value at the given index.- Parameters:
index
- the index of the union buffervalue
- the value- Returns:
this
-
pMoveObjectsAt
ReturnspMoveObjects
at the given index.- Parameters:
index
- the index of the union buffer- Returns:
pMoveObjects
at the given index
-
pMoveObjectsAt
public VkClusterAccelerationStructureOpInputNV.Buffer pMoveObjectsAt(long index, MemorySegment value) SetspMoveObjects
with the given value at the given index.- Parameters:
index
- the index of the union buffervalue
- the value- Returns:
this
-