# Interface VMAAllocationInfoType

All Known Implementing Classes:
  `VMAAllocationInfo`

@Immutable public interface VMAAllocationInfoType
Information about an allocation. This is an immutable snapshot of an allocation.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Optional<VulkanDeviceMemoryType>`
  `deviceMemory()`
  `default long`
  `memoryType()`
  `default long`
  `offset()`
  `default long`
  `size()`

- ## Method Details

  - ### memoryType

    @Default default long memoryType()
    Returns:
      The memory type index that this allocation was allocated from.

  - ### deviceMemory

    Optional<VulkanDeviceMemoryType> deviceMemory()
    Returns:
      A handle to the Vulkan memory object. Same memory object can be shared by multiple allocations. It can change after call to vmaDefragment() if this allocation is passed to the function, or if allocation is lost. If the allocation is lost, it is equal to `VK_NULL_HANDLE`.

  - ### offset

    @Default default long offset()
    Returns:
      The offset into the device memory object to the beginning of this allocation, in bytes. (deviceMemory, offset) pair is unique to this allocation. It can change after call to vmaDefragment() if this allocation is passed to the function, or if allocation is lost.

  - ### size

    @Default default long size()
    Returns:
      The size of this allocation, in bytes. It never changes, unless allocation is lost.