Class VmaVirtualBlockCreateInfo.Buffer

All Implemented Interfaces:
Addressable
Enclosing class:
VmaVirtualBlockCreateInfo

public static final class VmaVirtualBlockCreateInfo.Buffer extends VmaVirtualBlockCreateInfo
  • Constructor Details Link icon

    • Buffer Link icon

      public Buffer(MemorySegment segment, long elementCount)
      Creates VmaVirtualBlockCreateInfo.Buffer with the given segment.
      Parameters:
      segment - the memory segment
      elementCount - the element count
  • Method Details Link icon

    • estimateCount Link icon

      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 Link icon

      public VmaVirtualBlockCreateInfo asSlice(long index)
      Creates a slice of VmaVirtualBlockCreateInfo.
      Parameters:
      index - the index of the struct buffer
      Returns:
      the slice of VmaVirtualBlockCreateInfo
    • asSlice Link icon

      public VmaVirtualBlockCreateInfo.Buffer asSlice(long index, long count)
      Creates a slice of VmaVirtualBlockCreateInfo.
      Parameters:
      index - the index of the struct buffer
      count - the count
      Returns:
      the slice of VmaVirtualBlockCreateInfo
    • sizeAt Link icon

      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 Link icon

      public VmaVirtualBlockCreateInfo.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
    • flagsAt Link icon

      public int flagsAt(long index)
      Returns flags at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      flags at the given index
    • flagsAt Link icon

      public VmaVirtualBlockCreateInfo.Buffer flagsAt(long index, int value)
      Sets flags with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this
    • pAllocationCallbacksAt Link icon

      public MemorySegment pAllocationCallbacksAt(long index)
      Returns pAllocationCallbacks at the given index.
      Parameters:
      index - the index of the struct buffer
      Returns:
      pAllocationCallbacks at the given index
    • pAllocationCallbacksAt Link icon

      public VmaVirtualBlockCreateInfo.Buffer pAllocationCallbacksAt(long index, MemorySegment value)
      Sets pAllocationCallbacks with the given value at the given index.
      Parameters:
      index - the index of the struct buffer
      value - the value
      Returns:
      this