Function vk_mem_erupt::ffi::vmaFreeMemoryPages[][src]

pub unsafe extern "C" fn vmaFreeMemoryPages(
    allocator: VmaAllocator,
    allocationCount: usize,
    pAllocations: *mut VmaAllocation
)
Expand description

\brief Frees memory and destroys multiple allocations.

Word “pages” is just a suggestion to use this function to free pieces of memory used for sparse binding. It is just a general purpose function to free memory and destroy allocations made using e.g. vmaAllocateMemory(), vmaAllocateMemoryPages() and other functions. It may be internally optimized to be more efficient than calling vmaFreeMemory() allocationCount times.

Allocations in pAllocations array can come from any memory pools and types. Passing VK_NULL_HANDLE as elements of pAllocations array is valid. Such entries are just skipped.