fn destroy_buffer(&mut self, inner_key: DefaultKey) -> SarektResult<()> {
    let buffer = self.loaded_buffers_and_images.remove(inner_key);
    if buffer.is_none() {
      return Err(SarektError::UnknownResource);
    }

    self
      .buffer_image_loader
      .delete_buffer_or_image(buffer.unwrap().handle)
  }
/// Destroy a buffer and free the memory associated with it from the
/// backend/GPU.
Destroy a buffer and free the memory associated with it from the
backend/GPU.
Destroy a buffer and free the memory associated with it from the backend / GPU .
fn destroy_buffer(&mut self, inner_key: DefaultKey) -> SarektResult<()> {
    let buffer = self.loaded_buffers_and_images.remove(inner_key);
    if buffer.is_none() {
      return Err(SarektError::UnknownResource);
    }
    self
      .buffer_image_loader
      .delete_buffer_or_image(buffer.unwrap().handle)
  }
fn destroy_buffer ( & mut self , inner_key : DefaultKey ) -> SarektResult < ( ) > { let buffer = self . loaded_buffers_and_images . remove ( inner_key ) ; if buffer . is_none ( ) { return Err ( SarektError :: UnknownResource ) ; } self . buffer_image_loader . delete_buffer_or_image ( buffer . unwrap ( ) . handle ) }
Destroy a buffer and free the memory associated with it from the
backend/GPU.
Destroy a buffer and free the memory associated with it from the backend / GPU .
&mut self
inner_key
DefaultKey
&mut self
inner_key
DefaultKey