Class VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.struct.VkClusterAccelerationStructureBuildTriangleClusterInfoNV
overrungl.vulkan.nv.struct.VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer
- All Implemented Interfaces:
Addressable
- Enclosing class:
VkClusterAccelerationStructureBuildTriangleClusterInfoNV
public static final class VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer
extends VkClusterAccelerationStructureBuildTriangleClusterInfoNV
-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.vulkan.nv.struct.VkClusterAccelerationStructureBuildTriangleClusterInfoNV
VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer
-
Field Summary
Fields inherited from class overrungl.vulkan.nv.struct.VkClusterAccelerationStructureBuildTriangleClusterInfoNV
LAYOUT, LAYOUT_baseGeometryIndexAndGeometryFlags, LAYOUT_clusterFlags, LAYOUT_clusterID, LAYOUT_geometryIndexAndFlagsBuffer, LAYOUT_geometryIndexAndFlagsBufferStride, LAYOUT_indexBuffer, LAYOUT_indexBufferStride, LAYOUT_opacityMicromapArray, LAYOUT_opacityMicromapIndexBuffer, LAYOUT_opacityMicromapIndexBufferStride, LAYOUT_vertexBuffer, LAYOUT_vertexBufferStride, OFFSET_baseGeometryIndexAndGeometryFlags, OFFSET_clusterFlags, OFFSET_clusterID, OFFSET_geometryIndexAndFlagsBuffer, OFFSET_geometryIndexAndFlagsBufferStride, OFFSET_indexBuffer, OFFSET_indexBufferStride, OFFSET_opacityMicromapArray, OFFSET_opacityMicromapIndexBuffer, OFFSET_opacityMicromapIndexBufferStride, OFFSET_vertexBuffer, OFFSET_vertexBufferStride, VH_clusterFlags, VH_clusterID, VH_geometryIndexAndFlagsBuffer, VH_geometryIndexAndFlagsBufferStride, VH_indexBuffer, VH_indexBufferStride, VH_opacityMicromapArray, VH_opacityMicromapIndexBuffer, VH_opacityMicromapIndexBufferStride, VH_vertexBuffer, VH_vertexBufferStride
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesVkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionasSlice
(long index) Creates a slice ofVkClusterAccelerationStructureBuildTriangleClusterInfoNV
.asSlice
(long index, long count) Creates a slice ofVkClusterAccelerationStructureBuildTriangleClusterInfoNV
.baseGeometryIndexAndGeometryFlagsAt
(long index) ReturnsbaseGeometryIndexAndGeometryFlags
at the given index.baseGeometryIndexAndGeometryFlagsAt
(long index, MemorySegment value) SetsbaseGeometryIndexAndGeometryFlags
with the given value at the given index.int
clusterFlagsAt
(long index) ReturnsclusterFlags
at the given index.clusterFlagsAt
(long index, int value) SetsclusterFlags
with the given value at the given index.int
clusterIDAt
(long index) ReturnsclusterID
at the given index.clusterIDAt
(long index, int value) SetsclusterID
with the given value at the given index.long
Estimates the element count of this group type buffer.long
geometryIndexAndFlagsBufferAt
(long index) ReturnsgeometryIndexAndFlagsBuffer
at the given index.geometryIndexAndFlagsBufferAt
(long index, long value) SetsgeometryIndexAndFlagsBuffer
with the given value at the given index.short
geometryIndexAndFlagsBufferStrideAt
(long index) ReturnsgeometryIndexAndFlagsBufferStride
at the given index.geometryIndexAndFlagsBufferStrideAt
(long index, short value) SetsgeometryIndexAndFlagsBufferStride
with the given value at the given index.long
indexBufferAt
(long index) ReturnsindexBuffer
at the given index.indexBufferAt
(long index, long value) SetsindexBuffer
with the given value at the given index.short
indexBufferStrideAt
(long index) ReturnsindexBufferStride
at the given index.indexBufferStrideAt
(long index, short value) SetsindexBufferStride
with the given value at the given index.long
opacityMicromapArrayAt
(long index) ReturnsopacityMicromapArray
at the given index.opacityMicromapArrayAt
(long index, long value) SetsopacityMicromapArray
with the given value at the given index.long
opacityMicromapIndexBufferAt
(long index) ReturnsopacityMicromapIndexBuffer
at the given index.opacityMicromapIndexBufferAt
(long index, long value) SetsopacityMicromapIndexBuffer
with the given value at the given index.short
opacityMicromapIndexBufferStrideAt
(long index) ReturnsopacityMicromapIndexBufferStride
at the given index.opacityMicromapIndexBufferStrideAt
(long index, short value) SetsopacityMicromapIndexBufferStride
with the given value at the given index.long
vertexBufferAt
(long index) ReturnsvertexBuffer
at the given index.vertexBufferAt
(long index, long value) SetsvertexBuffer
with the given value at the given index.short
vertexBufferStrideAt
(long index) ReturnsvertexBufferStride
at the given index.vertexBufferStrideAt
(long index, short value) SetsvertexBufferStride
with the given value at the given index.Methods inherited from class overrungl.vulkan.nv.struct.VkClusterAccelerationStructureBuildTriangleClusterInfoNV
alloc, alloc, asBuffer, baseGeometryIndexAndGeometryFlags, baseGeometryIndexAndGeometryFlags, baseGeometryIndexAndGeometryFlags, baseGeometryIndexAndGeometryFlags, clusterFlags, clusterFlags, clusterFlags, clusterFlags, clusterID, clusterID, clusterID, clusterID, copyFrom, geometryIndexAndFlagsBuffer, geometryIndexAndFlagsBuffer, geometryIndexAndFlagsBuffer, geometryIndexAndFlagsBuffer, geometryIndexAndFlagsBufferStride, geometryIndexAndFlagsBufferStride, geometryIndexAndFlagsBufferStride, geometryIndexAndFlagsBufferStride, indexBuffer, indexBuffer, indexBuffer, indexBuffer, indexBufferStride, indexBufferStride, indexBufferStride, indexBufferStride, of, ofNative, ofNative, opacityMicromapArray, opacityMicromapArray, opacityMicromapArray, opacityMicromapArray, opacityMicromapIndexBuffer, opacityMicromapIndexBuffer, opacityMicromapIndexBuffer, opacityMicromapIndexBuffer, opacityMicromapIndexBufferStride, opacityMicromapIndexBufferStride, opacityMicromapIndexBufferStride, opacityMicromapIndexBufferStride, vertexBuffer, vertexBuffer, vertexBuffer, vertexBuffer, vertexBufferStride, vertexBufferStride, vertexBufferStride, vertexBufferStride
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesVkClusterAccelerationStructureBuildTriangleClusterInfoNV.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 ofVkClusterAccelerationStructureBuildTriangleClusterInfoNV
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkClusterAccelerationStructureBuildTriangleClusterInfoNV
-
asSlice
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer asSlice(long index, long count) Creates a slice ofVkClusterAccelerationStructureBuildTriangleClusterInfoNV
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkClusterAccelerationStructureBuildTriangleClusterInfoNV
-
clusterIDAt
public int clusterIDAt(long index) ReturnsclusterID
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
clusterID
at the given index
-
clusterIDAt
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer clusterIDAt(long index, int value) SetsclusterID
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
clusterFlagsAt
public int clusterFlagsAt(long index) ReturnsclusterFlags
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
clusterFlags
at the given index
-
clusterFlagsAt
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer clusterFlagsAt(long index, int value) SetsclusterFlags
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
baseGeometryIndexAndGeometryFlagsAt
ReturnsbaseGeometryIndexAndGeometryFlags
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
baseGeometryIndexAndGeometryFlags
at the given index
-
baseGeometryIndexAndGeometryFlagsAt
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer baseGeometryIndexAndGeometryFlagsAt(long index, MemorySegment value) SetsbaseGeometryIndexAndGeometryFlags
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
indexBufferStrideAt
public short indexBufferStrideAt(long index) ReturnsindexBufferStride
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
indexBufferStride
at the given index
-
indexBufferStrideAt
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer indexBufferStrideAt(long index, short value) SetsindexBufferStride
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
vertexBufferStrideAt
public short vertexBufferStrideAt(long index) ReturnsvertexBufferStride
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
vertexBufferStride
at the given index
-
vertexBufferStrideAt
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer vertexBufferStrideAt(long index, short value) SetsvertexBufferStride
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
geometryIndexAndFlagsBufferStrideAt
public short geometryIndexAndFlagsBufferStrideAt(long index) ReturnsgeometryIndexAndFlagsBufferStride
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
geometryIndexAndFlagsBufferStride
at the given index
-
geometryIndexAndFlagsBufferStrideAt
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer geometryIndexAndFlagsBufferStrideAt(long index, short value) SetsgeometryIndexAndFlagsBufferStride
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
opacityMicromapIndexBufferStrideAt
public short opacityMicromapIndexBufferStrideAt(long index) ReturnsopacityMicromapIndexBufferStride
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
opacityMicromapIndexBufferStride
at the given index
-
opacityMicromapIndexBufferStrideAt
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer opacityMicromapIndexBufferStrideAt(long index, short value) SetsopacityMicromapIndexBufferStride
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
indexBufferAt
public long indexBufferAt(long index) ReturnsindexBuffer
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
indexBuffer
at the given index
-
indexBufferAt
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer indexBufferAt(long index, long value) SetsindexBuffer
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
vertexBufferAt
public long vertexBufferAt(long index) ReturnsvertexBuffer
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
vertexBuffer
at the given index
-
vertexBufferAt
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer vertexBufferAt(long index, long value) SetsvertexBuffer
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
geometryIndexAndFlagsBufferAt
public long geometryIndexAndFlagsBufferAt(long index) ReturnsgeometryIndexAndFlagsBuffer
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
geometryIndexAndFlagsBuffer
at the given index
-
geometryIndexAndFlagsBufferAt
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer geometryIndexAndFlagsBufferAt(long index, long value) SetsgeometryIndexAndFlagsBuffer
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
opacityMicromapArrayAt
public long opacityMicromapArrayAt(long index) ReturnsopacityMicromapArray
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
opacityMicromapArray
at the given index
-
opacityMicromapArrayAt
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer opacityMicromapArrayAt(long index, long value) SetsopacityMicromapArray
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
opacityMicromapIndexBufferAt
public long opacityMicromapIndexBufferAt(long index) ReturnsopacityMicromapIndexBuffer
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
opacityMicromapIndexBuffer
at the given index
-
opacityMicromapIndexBufferAt
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer opacityMicromapIndexBufferAt(long index, long value) SetsopacityMicromapIndexBuffer
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-