pub unsafe extern "C" fn vmaGetHeapBudgets(
    allocator: VmaAllocator,
    pBudgets: *mut VmaBudget
)
Expand description

\brief Retrieves information about current memory usage and budget for all memory heaps.

\param allocator \param[out] pBudgets Must point to array with number of elements at least equal to number of memory heaps in physical device used.

This function is called “get” not “calculate” because it is very fast, suitable to be called every frame or every allocation. For more detailed statistics use vmaCalculateStatistics().

Note that when using allocator from multiple threads, returned information may immediately become outdated.