pub unsafe extern "C" fn vmaGetAllocationInfo(
    allocator: VmaAllocator,
    allocation: VmaAllocation,
    pAllocationInfo: *mut VmaAllocationInfo
)
Expand description

\brief Returns current information about specified allocation.

Current parameters of given allocation are returned in pAllocationInfo.

Although this function doesn’t lock any mutex, so it should be quite efficient, you should avoid calling it too often. You can retrieve same VmaAllocationInfo structure while creating your resource, from function vmaCreateBuffer(), vmaCreateImage(). You can remember it if you are sure parameters don’t change (e.g. due to defragmentation).