fn drop(&mut self) {
        unsafe {
            if self.raw != vk::Buffer::null() {
                self.device.logical_device.destroy_buffer(self.raw, None);
                self.raw = vk::Buffer::null();
            }
            self.device.free_memory(&self.allocation).unwrap();
        }
    }
/// Free the buffer and any memory which is allocated.
///
/// It is the responsibility of the application to synchronize this drop
/// with any ongoing GPU actions.
Free the buffer and any memory which is allocated.
It is the responsibility of the application to synchronize this drop
with any ongoing GPU actions.
Free the buffer and any memory which is allocated . It is the responsibility of the application to synchronize this drop with any ongoing GPU actions .
fn drop(&mut self) {
        unsafe {
            if self.raw != vk::Buffer::null() {
                self.device.logical_device.destroy_buffer(self.raw, None);
                self.raw = vk::Buffer::null();
            }
            self.device.free_memory(&self.allocation).unwrap();
        }
    }
fn drop ( & mut self ) { unsafe { if self . raw != vk :: Buffer :: null ( ) { self . device . logical_device . destroy_buffer ( self . raw , None ) ; self . raw = vk :: Buffer :: null ( ) ; } self . device . free_memory ( & self . allocation ) . unwrap ( ) ; } }
Free the buffer and any memory which is allocated.
Free the buffer and any memory which is allocated .
&mut self