Package org.lwjgl.vulkan
Class VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer>
org.lwjgl.system.StructBuffer<VkClusterAccelerationStructureBuildTriangleClusterInfoNV,VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer>
org.lwjgl.vulkan.VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<VkClusterAccelerationStructureBuildTriangleClusterInfoNV>
,NativeResource
,Pointer
- Enclosing class:
VkClusterAccelerationStructureBuildTriangleClusterInfoNV
public static class VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer
extends StructBuffer<VkClusterAccelerationStructureBuildTriangleClusterInfoNV,VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer>
implements NativeResource
An array of
VkClusterAccelerationStructureBuildTriangleClusterInfoNV
structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newVkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionbaseGeometryIndexAndGeometryFlags
(Consumer<VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV> consumer) Passes thebaseGeometryIndexAndGeometryFlags
field to the specifiedConsumer
.baseGeometryIndexAndGeometryFlags
(VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV value) Copies the specifiedVkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV
to thebaseGeometryIndexAndGeometryFlags
field.int
clusterFlags
(int value) Sets the specified value to theclusterFlags
field.int
clusterID
(int value) Sets the specified value to theclusterID
field.long
geometryIndexAndFlagsBuffer
(long value) Sets the specified value to thegeometryIndexAndFlagsBuffer
field.short
geometryIndexAndFlagsBufferStride
(short value) Sets the specified value to thegeometryIndexAndFlagsBufferStride
field.long
indexBuffer
(long value) Sets the specified value to theindexBuffer
field.short
indexBufferStride
(short value) Sets the specified value to theindexBufferStride
field.int
indexType
(int value) Sets the specified value to theindexType
field.long
opacityMicromapArray
(long value) Sets the specified value to theopacityMicromapArray
field.long
opacityMicromapIndexBuffer
(long value) Sets the specified value to theopacityMicromapIndexBuffer
field.short
opacityMicromapIndexBufferStride
(short value) Sets the specified value to theopacityMicromapIndexBufferStride
field.int
opacityMicromapIndexType
(int value) Sets the specified value to theopacityMicromapIndexType
field.int
positionTruncateBitCount
(int value) Sets the specified value to thepositionTruncateBitCount
field.int
triangleCount
(int value) Sets the specified value to thetriangleCount
field.long
vertexBuffer
(long value) Sets the specified value to thevertexBuffer
field.short
vertexBufferStride
(short value) Sets the specified value to thevertexBufferStride
field.int
vertexCount
(int value) Sets the specified value to thevertexCount
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newVkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer
instance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
VkClusterAccelerationStructureBuildTriangleClusterInfoNV.SIZEOF
, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
clusterID
public int clusterID()- Returns:
- the value of the
clusterID
field.
-
clusterFlags
public int clusterFlags()- Returns:
- the value of the
clusterFlags
field.
-
triangleCount
public int triangleCount()- Returns:
- the value of the
triangleCount
field.
-
vertexCount
public int vertexCount()- Returns:
- the value of the
vertexCount
field.
-
positionTruncateBitCount
public int positionTruncateBitCount()- Returns:
- the value of the
positionTruncateBitCount
field.
-
indexType
public int indexType()- Returns:
- the value of the
indexType
field.
-
opacityMicromapIndexType
public int opacityMicromapIndexType()- Returns:
- the value of the
opacityMicromapIndexType
field.
-
baseGeometryIndexAndGeometryFlags
public VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV baseGeometryIndexAndGeometryFlags()- Returns:
- a
VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV
view of thebaseGeometryIndexAndGeometryFlags
field.
-
indexBufferStride
public short indexBufferStride()- Returns:
- the value of the
indexBufferStride
field.
-
vertexBufferStride
public short vertexBufferStride()- Returns:
- the value of the
vertexBufferStride
field.
-
geometryIndexAndFlagsBufferStride
public short geometryIndexAndFlagsBufferStride()- Returns:
- the value of the
geometryIndexAndFlagsBufferStride
field.
-
opacityMicromapIndexBufferStride
public short opacityMicromapIndexBufferStride()- Returns:
- the value of the
opacityMicromapIndexBufferStride
field.
-
indexBuffer
public long indexBuffer()- Returns:
- the value of the
indexBuffer
field.
-
vertexBuffer
public long vertexBuffer()- Returns:
- the value of the
vertexBuffer
field.
-
geometryIndexAndFlagsBuffer
public long geometryIndexAndFlagsBuffer()- Returns:
- the value of the
geometryIndexAndFlagsBuffer
field.
-
opacityMicromapArray
public long opacityMicromapArray()- Returns:
- the value of the
opacityMicromapArray
field.
-
opacityMicromapIndexBuffer
public long opacityMicromapIndexBuffer()- Returns:
- the value of the
opacityMicromapIndexBuffer
field.
-
clusterID
Sets the specified value to theclusterID
field. -
clusterFlags
Sets the specified value to theclusterFlags
field. -
triangleCount
Sets the specified value to thetriangleCount
field. -
vertexCount
Sets the specified value to thevertexCount
field. -
positionTruncateBitCount
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer positionTruncateBitCount(int value) Sets the specified value to thepositionTruncateBitCount
field. -
indexType
Sets the specified value to theindexType
field. -
opacityMicromapIndexType
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer opacityMicromapIndexType(int value) Sets the specified value to theopacityMicromapIndexType
field. -
baseGeometryIndexAndGeometryFlags
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer baseGeometryIndexAndGeometryFlags(VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV value) Copies the specifiedVkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV
to thebaseGeometryIndexAndGeometryFlags
field. -
baseGeometryIndexAndGeometryFlags
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer baseGeometryIndexAndGeometryFlags(Consumer<VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV> consumer) Passes thebaseGeometryIndexAndGeometryFlags
field to the specifiedConsumer
. -
indexBufferStride
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer indexBufferStride(short value) Sets the specified value to theindexBufferStride
field. -
vertexBufferStride
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer vertexBufferStride(short value) Sets the specified value to thevertexBufferStride
field. -
geometryIndexAndFlagsBufferStride
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer geometryIndexAndFlagsBufferStride(short value) Sets the specified value to thegeometryIndexAndFlagsBufferStride
field. -
opacityMicromapIndexBufferStride
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer opacityMicromapIndexBufferStride(short value) Sets the specified value to theopacityMicromapIndexBufferStride
field. -
indexBuffer
Sets the specified value to theindexBuffer
field. -
vertexBuffer
Sets the specified value to thevertexBuffer
field. -
geometryIndexAndFlagsBuffer
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer geometryIndexAndFlagsBuffer(long value) Sets the specified value to thegeometryIndexAndFlagsBuffer
field. -
opacityMicromapArray
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer opacityMicromapArray(long value) Sets the specified value to theopacityMicromapArray
field. -
opacityMicromapIndexBuffer
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer opacityMicromapIndexBuffer(long value) Sets the specified value to theopacityMicromapIndexBuffer
field.
-