Class VmaAllocationInfo.Buffer

All Implemented Interfaces:
Addressable
Enclosing class:
VmaAllocationInfo

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

    • Buffer

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

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

      public int memoryTypeAt(long index)
      Returns memoryType at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      memoryType at the given index
    • memoryTypeAt

      public VmaAllocationInfo.Buffer memoryTypeAt(long index, int value)
      Sets memoryType with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • deviceMemoryAt

      public long deviceMemoryAt(long index)
      Returns deviceMemory at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      deviceMemory at the given index
    • deviceMemoryAt

      public VmaAllocationInfo.Buffer deviceMemoryAt(long index, long value)
      Sets deviceMemory with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • offsetAt

      public long offsetAt(long index)
      Returns offset at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      offset at the given index
    • offsetAt

      public VmaAllocationInfo.Buffer offsetAt(long index, long value)
      Sets offset with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • sizeAt

      public long sizeAt(long index)
      Returns size at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      size at the given index
    • sizeAt

      public VmaAllocationInfo.Buffer sizeAt(long index, long value)
      Sets size with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pMappedDataAt

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

      public VmaAllocationInfo.Buffer pMappedDataAt(long index, MemorySegment value)
      Sets pMappedData with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pUserDataAt

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

      public VmaAllocationInfo.Buffer pUserDataAt(long index, MemorySegment value)
      Sets pUserData with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pNameAt

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

      public VmaAllocationInfo.Buffer pNameAt(long index, MemorySegment value)
      Sets pName with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this