Skip to main content

free_memory

Function free_memory 

Source
pub unsafe fn free_memory(
    device: &Device,
    memory: DeviceMemory,
    allocator: Option<&AllocationCallbacks>,
) -> Result<(), CallError>
Expand description

Free a previously allocated device memory object.

ยงSafety

All resources bound to this memory must have been destroyed. The memory must not be freed more than once.

Khronos reference: vkFreeMemory