Skip to main content

destroy_buffer

Function destroy_buffer 

Source
pub unsafe fn destroy_buffer(
    device: &Device,
    buffer: Buffer,
    allocator: Option<&AllocationCallbacks>,
) -> Result<(), CallError>
Expand description

Destroy a buffer object.

ยงSafety

The buffer must not be in use by the GPU and must not be destroyed twice.

Khronos reference: vkDestroyBuffer