Function vk_mem_alloc::ffi::vmaDestroyBuffer
source · [−]pub unsafe extern "C" fn vmaDestroyBuffer(
allocator: VmaAllocator,
buffer: Buffer,
allocation: VmaAllocation
)
Expand description
\brief Destroys Vulkan buffer and frees allocated memory.
This is just a convenience function equivalent to:
\code vkDestroyBuffer(device, buffer, allocationCallbacks); vmaFreeMemory(allocator, allocation); \endcode
It is safe to pass null as buffer and/or allocation.