Class VkDeviceOrHostAddressConstAMDX.Buffer

java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.amdx.union.VkDeviceOrHostAddressConstAMDX
overrungl.vulkan.amdx.union.VkDeviceOrHostAddressConstAMDX.Buffer
All Implemented Interfaces:
Addressable
Enclosing class:
VkDeviceOrHostAddressConstAMDX

public static final class VkDeviceOrHostAddressConstAMDX.Buffer extends VkDeviceOrHostAddressConstAMDX
  • Constructor Details

    • Buffer

      public Buffer(MemorySegment segment, long elementCount)
      Creates VkDeviceOrHostAddressConstAMDX.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 VkDeviceOrHostAddressConstAMDX asSlice(long index)
      Creates a slice of VkDeviceOrHostAddressConstAMDX.
      Parameters:
      index - the index of the union buffer
      Returns:
      the slice of VkDeviceOrHostAddressConstAMDX
    • asSlice

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

      public long deviceAddressAt(long index)
      Returns deviceAddress at the given index.
      Parameters:
      index - the index of the union buffer
      Returns:
      deviceAddress at the given index
    • deviceAddressAt

      public VkDeviceOrHostAddressConstAMDX.Buffer deviceAddressAt(long index, long value)
      Sets deviceAddress with the given value at the given index.
      Parameters:
      index - the index of the union buffer
      value - the value
      Returns:
      this
    • hostAddressAt

      public MemorySegment hostAddressAt(long index)
      Returns hostAddress at the given index.
      Parameters:
      index - the index of the union buffer
      Returns:
      hostAddress at the given index
    • hostAddressAt

      public VkDeviceOrHostAddressConstAMDX.Buffer hostAddressAt(long index, MemorySegment value)
      Sets hostAddress with the given value at the given index.
      Parameters:
      index - the index of the union buffer
      value - the value
      Returns:
      this