pub unsafe fn cleanup(&self, logical_device: &Device) {
    info!("Destroying all framebuffers...");
    for &fb in self.framebuffers.iter() {
      logical_device.destroy_framebuffer(fb, None);
    }

    info!("Destroying base graphics pipeline...");
    logical_device.destroy_pipeline(self.base_graphics_pipeline_bundle.pipeline, None);

    info!("Destroying base pipeline layouts...");
    logical_device
      .destroy_pipeline_layout(self.base_graphics_pipeline_bundle.pipeline_layout, None);

    info!("Destroying render pass...");
    logical_device.destroy_render_pass(self.forward_render_pass, None);
  }
/// Cleans up all vulkan resources, unsafe because it should only be called
/// when these resources are no longer needed.
Cleans up all vulkan resources, unsafe because it should only be called
when these resources are no longer needed.
Cleans up all vulkan resources unsafe because it should only be called when these resources are no longer needed .
pub unsafe fn cleanup(&self, logical_device: &Device) {
    info!("Destroying all framebuffers...");
    for &fb in self.framebuffers.iter() {
      logical_device.destroy_framebuffer(fb, None);
    }
    info!("Destroying base graphics pipeline...");
    logical_device.destroy_pipeline(self.base_graphics_pipeline_bundle.pipeline, None);
    info!("Destroying base pipeline layouts...");
    logical_device
      .destroy_pipeline_layout(self.base_graphics_pipeline_bundle.pipeline_layout, None);
    info!("Destroying render pass...");
    logical_device.destroy_render_pass(self.forward_render_pass, None);
  }
pub unsafe fn cleanup ( & self , logical_device : & Device ) { info ! ( " " ) ; for & fb in self . framebuffers . iter ( ) { logical_device . destroy_framebuffer ( fb , None ) ; } info ! ( " " ) ; logical_device . destroy_pipeline ( self . base_graphics_pipeline_bundle . pipeline , None ) ; info ! ( " " ) ; logical_device . destroy_pipeline_layout ( self . base_graphics_pipeline_bundle . pipeline_layout , None ) ; info ! ( " " ) ; logical_device . destroy_render_pass ( self . forward_render_pass , None ) ; }
Cleans up all vulkan resources, unsafe because it should only be called
when these resources are no longer needed.
Cleans up all vulkan resources unsafe because it should only be called when these resources are no longer needed .
&self
logical_device
&Device
&self
logical_device
&Device