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
  • Constructor Details

    • Buffer

      public Buffer(MemorySegment segment, long elementCount)
      Creates VkClusterAccelerationStructureBuildTriangleClusterInfoNV.Buffer with the given segment.
      Parameters:
      segment - the memory segment
      elementCount - 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 class GroupType
      Returns:
      the estimated element count of the group type buffer
    • asSlice

      Creates a slice of VkClusterAccelerationStructureBuildTriangleClusterInfoNV.
      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 of VkClusterAccelerationStructureBuildTriangleClusterInfoNV.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of VkClusterAccelerationStructureBuildTriangleClusterInfoNV
    • clusterIDAt

      public int clusterIDAt(long index)
      Returns clusterID 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)
      Sets clusterID with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • clusterFlagsAt

      public int clusterFlagsAt(long index)
      Returns clusterFlags 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)
      Sets clusterFlags with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • baseGeometryIndexAndGeometryFlagsAt

      public MemorySegment baseGeometryIndexAndGeometryFlagsAt(long index)
      Returns baseGeometryIndexAndGeometryFlags 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)
      Sets baseGeometryIndexAndGeometryFlags with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • indexBufferStrideAt

      public short indexBufferStrideAt(long index)
      Returns indexBufferStride 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)
      Sets indexBufferStride with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • vertexBufferStrideAt

      public short vertexBufferStrideAt(long index)
      Returns vertexBufferStride 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)
      Sets vertexBufferStride with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • geometryIndexAndFlagsBufferStrideAt

      public short geometryIndexAndFlagsBufferStrideAt(long index)
      Returns geometryIndexAndFlagsBufferStride 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)
      Sets geometryIndexAndFlagsBufferStride with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • opacityMicromapIndexBufferStrideAt

      public short opacityMicromapIndexBufferStrideAt(long index)
      Returns opacityMicromapIndexBufferStride 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)
      Sets opacityMicromapIndexBufferStride with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • indexBufferAt

      public long indexBufferAt(long index)
      Returns indexBuffer 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)
      Sets indexBuffer with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • vertexBufferAt

      public long vertexBufferAt(long index)
      Returns vertexBuffer 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)
      Sets vertexBuffer with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • geometryIndexAndFlagsBufferAt

      public long geometryIndexAndFlagsBufferAt(long index)
      Returns geometryIndexAndFlagsBuffer 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)
      Sets geometryIndexAndFlagsBuffer with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • opacityMicromapArrayAt

      public long opacityMicromapArrayAt(long index)
      Returns opacityMicromapArray 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)
      Sets opacityMicromapArray with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • opacityMicromapIndexBufferAt

      public long opacityMicromapIndexBufferAt(long index)
      Returns opacityMicromapIndexBuffer 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)
      Sets opacityMicromapIndexBuffer with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this