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.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionbaseGeometryIndexAndGeometryFlags(Consumer<VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV> consumer) Passes thebaseGeometryIndexAndGeometryFlagsfield to the specifiedConsumer.baseGeometryIndexAndGeometryFlags(VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV value) Copies the specifiedVkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNVto thebaseGeometryIndexAndGeometryFlagsfield.intclusterFlags(int value) Sets the specified value to theclusterFlagsfield.intclusterID(int value) Sets the specified value to theclusterIDfield.longgeometryIndexAndFlagsBuffer(long value) Sets the specified value to thegeometryIndexAndFlagsBufferfield.shortgeometryIndexAndFlagsBufferStride(short value) Sets the specified value to thegeometryIndexAndFlagsBufferStridefield.longindexBuffer(long value) Sets the specified value to theindexBufferfield.shortindexBufferStride(short value) Sets the specified value to theindexBufferStridefield.intindexType(int value) Sets the specified value to theindexTypefield.longopacityMicromapArray(long value) Sets the specified value to theopacityMicromapArrayfield.longopacityMicromapIndexBuffer(long value) Sets the specified value to theopacityMicromapIndexBufferfield.shortopacityMicromapIndexBufferStride(short value) Sets the specified value to theopacityMicromapIndexBufferStridefield.intopacityMicromapIndexType(int value) Sets the specified value to theopacityMicromapIndexTypefield.intpositionTruncateBitCount(int value) Sets the specified value to thepositionTruncateBitCountfield.inttriangleCount(int value) Sets the specified value to thetriangleCountfield.longvertexBuffer(long value) Sets the specified value to thevertexBufferfield.shortvertexBufferStride(short value) Sets the specified value to thevertexBufferStridefield.intvertexCount(int value) Sets the specified value to thevertexCountfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods 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, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newVkClusterAccelerationStructureBuildTriangleClusterInfoNV.Bufferinstance 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
clusterIDfield.
-
clusterFlags
public int clusterFlags()- Returns:
- the value of the
clusterFlagsfield.
-
triangleCount
public int triangleCount()- Returns:
- the value of the
triangleCountfield.
-
vertexCount
public int vertexCount()- Returns:
- the value of the
vertexCountfield.
-
positionTruncateBitCount
public int positionTruncateBitCount()- Returns:
- the value of the
positionTruncateBitCountfield.
-
indexType
public int indexType()- Returns:
- the value of the
indexTypefield.
-
opacityMicromapIndexType
public int opacityMicromapIndexType()- Returns:
- the value of the
opacityMicromapIndexTypefield.
-
baseGeometryIndexAndGeometryFlags
public VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV baseGeometryIndexAndGeometryFlags()- Returns:
- a
VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNVview of thebaseGeometryIndexAndGeometryFlagsfield.
-
indexBufferStride
public short indexBufferStride()- Returns:
- the value of the
indexBufferStridefield.
-
vertexBufferStride
public short vertexBufferStride()- Returns:
- the value of the
vertexBufferStridefield.
-
geometryIndexAndFlagsBufferStride
public short geometryIndexAndFlagsBufferStride()- Returns:
- the value of the
geometryIndexAndFlagsBufferStridefield.
-
opacityMicromapIndexBufferStride
public short opacityMicromapIndexBufferStride()- Returns:
- the value of the
opacityMicromapIndexBufferStridefield.
-
indexBuffer
public long indexBuffer()- Returns:
- the value of the
indexBufferfield.
-
vertexBuffer
public long vertexBuffer()- Returns:
- the value of the
vertexBufferfield.
-
geometryIndexAndFlagsBuffer
public long geometryIndexAndFlagsBuffer()- Returns:
- the value of the
geometryIndexAndFlagsBufferfield.
-
opacityMicromapArray
public long opacityMicromapArray()- Returns:
- the value of the
opacityMicromapArrayfield.
-
opacityMicromapIndexBuffer
public long opacityMicromapIndexBuffer()- Returns:
- the value of the
opacityMicromapIndexBufferfield.
-
clusterID
Sets the specified value to theclusterIDfield. -
clusterFlags
Sets the specified value to theclusterFlagsfield. -
triangleCount
Sets the specified value to thetriangleCountfield. -
vertexCount
Sets the specified value to thevertexCountfield. -
positionTruncateBitCount
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer positionTruncateBitCount(int value) Sets the specified value to thepositionTruncateBitCountfield. -
indexType
Sets the specified value to theindexTypefield. -
opacityMicromapIndexType
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer opacityMicromapIndexType(int value) Sets the specified value to theopacityMicromapIndexTypefield. -
baseGeometryIndexAndGeometryFlags
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer baseGeometryIndexAndGeometryFlags(VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV value) Copies the specifiedVkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNVto thebaseGeometryIndexAndGeometryFlagsfield. -
baseGeometryIndexAndGeometryFlags
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer baseGeometryIndexAndGeometryFlags(Consumer<VkClusterAccelerationStructureGeometryIndexAndGeometryFlagsNV> consumer) Passes thebaseGeometryIndexAndGeometryFlagsfield to the specifiedConsumer. -
indexBufferStride
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer indexBufferStride(short value) Sets the specified value to theindexBufferStridefield. -
vertexBufferStride
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer vertexBufferStride(short value) Sets the specified value to thevertexBufferStridefield. -
geometryIndexAndFlagsBufferStride
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer geometryIndexAndFlagsBufferStride(short value) Sets the specified value to thegeometryIndexAndFlagsBufferStridefield. -
opacityMicromapIndexBufferStride
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer opacityMicromapIndexBufferStride(short value) Sets the specified value to theopacityMicromapIndexBufferStridefield. -
indexBuffer
Sets the specified value to theindexBufferfield. -
vertexBuffer
Sets the specified value to thevertexBufferfield. -
geometryIndexAndFlagsBuffer
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer geometryIndexAndFlagsBuffer(long value) Sets the specified value to thegeometryIndexAndFlagsBufferfield. -
opacityMicromapArray
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer opacityMicromapArray(long value) Sets the specified value to theopacityMicromapArrayfield. -
opacityMicromapIndexBuffer
public VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer opacityMicromapIndexBuffer(long value) Sets the specified value to theopacityMicromapIndexBufferfield.
-