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

    • Buffer

      public Buffer(MemorySegment segment, long elementCount)
      Creates VkClusterAccelerationStructureOpInputNV.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

      public VkClusterAccelerationStructureOpInputNV asSlice(long index)
      Creates a slice of VkClusterAccelerationStructureOpInputNV.
      Parameters:
      index - the index of the union buffer
      Returns:
      the slice of VkClusterAccelerationStructureOpInputNV
    • asSlice

      public VkClusterAccelerationStructureOpInputNV.Buffer asSlice(long index, long count)
      Creates a slice of VkClusterAccelerationStructureOpInputNV.
      Parameters:
      index - the index of the union buffer
      count - the count
      Returns:
      the slice of VkClusterAccelerationStructureOpInputNV
    • pClustersBottomLevelAt

      public MemorySegment pClustersBottomLevelAt(long index)
      Returns pClustersBottomLevel 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)
      Sets pClustersBottomLevel with the given value at the given index.
      Parameters:
      index - the index of the union buffer
      value - the value
      Returns:
      this
    • pTriangleClustersAt

      public MemorySegment pTriangleClustersAt(long index)
      Returns pTriangleClusters 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)
      Sets pTriangleClusters with the given value at the given index.
      Parameters:
      index - the index of the union buffer
      value - the value
      Returns:
      this
    • pMoveObjectsAt

      public MemorySegment pMoveObjectsAt(long index)
      Returns pMoveObjects 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)
      Sets pMoveObjects with the given value at the given index.
      Parameters:
      index - the index of the union buffer
      value - the value
      Returns:
      this