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.