Class VmaAllocatorInfo.Buffer

All Implemented Interfaces:
Addressable
Enclosing class:
VmaAllocatorInfo

public static final class VmaAllocatorInfo.Buffer extends VmaAllocatorInfo
A buffer of VmaAllocatorInfo.
  • Constructor Details

    • Buffer

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

      public VmaAllocatorInfo.Buffer asSlice(long index, long count)
      Creates a slice of VmaAllocatorInfo.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of VmaAllocatorInfo
    • instanceAt

      public MemorySegment instanceAt(long index)
      Returns instance at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      instance at the given index
    • instanceAt

      public VmaAllocatorInfo.Buffer instanceAt(long index, MemorySegment value)
      Sets instance with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • physicalDeviceAt

      public MemorySegment physicalDeviceAt(long index)
      Returns physicalDevice at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      physicalDevice at the given index
    • physicalDeviceAt

      public VmaAllocatorInfo.Buffer physicalDeviceAt(long index, MemorySegment value)
      Sets physicalDevice with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • deviceAt

      public MemorySegment deviceAt(long index)
      Returns device at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      device at the given index
    • deviceAt

      public VmaAllocatorInfo.Buffer deviceAt(long index, MemorySegment value)
      Sets device with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this