Function vk_mem_alloc::ffi::vmaClearVirtualBlock
source · [−]pub unsafe extern "C" fn vmaClearVirtualBlock(
virtualBlock: VmaVirtualBlock
)
Expand description
\brief Frees all virtual allocations inside given #VmaVirtualBlock.
You must either call this function or free each virtual allocation individually with vmaVirtualFree() before destroying a virtual block. Otherwise, an assert is called.
If you keep pointer to some additional metadata associated with your virtual allocation in its pUserData
,
don’t forget to free it as well.