Function vk_mem_erupt::ffi::vmaCalculateStats[][src]

pub unsafe extern "C" fn vmaCalculateStats(
    allocator: VmaAllocator,
    pStats: *mut VmaStats
)
Expand description

\brief Retrieves statistics from current state of the Allocator.

This function is called “calculate” not “get” because it has to traverse all internal data structures, so it may be quite slow. For faster but more brief statistics suitable to be called every frame or every allocation, use vmaGetBudget().

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