-
- All Known Implementing Classes:
VMAAllocationInfo
@Immutable public interface VMAAllocationInfoType
Information about an allocation. This is an immutable snapshot of an allocation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<VulkanDeviceMemoryType>
deviceMemory()
long
memoryType()
long
offset()
long
size()
-
-
-
Method Detail
-
memoryType
@Parameter long memoryType()
- Returns:
- The memory type index that this allocation was allocated from.
-
deviceMemory
@Parameter java.util.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
@Parameter 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
@Parameter long size()
- Returns:
- The size of this allocation, in bytes. It never changes, unless allocation is lost.
-
-