/// Must be called by the backend when cleaning up all resources, if they are
/// managed by the application (as in Vulkan/D3D12).
///
/// # Safety
/// Unsafe because afterwards the object becomes invalid and should not be
/// used again.
Must be called by the backend when cleaning up all resources, if they are
managed by the application (as in Vulkan/D3D12).
Must be called by the backend when cleaning up all resources if they are managed by the application ( as in Vulkan / D3D12 ) .
pub unsafe fn cleanup(&mut self) -> SarektResult<()> {
    self.buffer_image_loader.cleanup()?;
    self.destroy_all_images_and_buffers();
    Ok(())
  }
pub unsafe fn cleanup ( & mut self ) -> SarektResult < ( ) > { self . buffer_image_loader . cleanup ( ) ? ; self . destroy_all_images_and_buffers ( ) ; Ok ( ( ) ) }
Must be called by the backend when cleaning up all resources, if they are
managed by the application (as in Vulkan/D3D12).
Must be called by the backend when cleaning up all resources if they are managed by the application ( as in Vulkan / D3D12 ) .
&mut self
safety
Unsafe because afterwards the object becomes invalid and should not be
used again.
Unsafe because afterwards the object becomes invalid and should not be used again .