/// Useful during swapchain recreation, but the specific render targets and
/// swapchain to delete are specified, since the current ones are always
/// contained in the struct.
Useful during swapchain recreation, but the specific render targets and
swapchain to delete are specified, since the current ones are always
contained in the struct.
Useful during swapchain recreation but the specific render targets and swapchain to delete are specified since the current ones are always contained in the struct .
pub unsafe fn cleanup_render_targets(
    &self, device_bundle: &VulkanDeviceStructures, render_targets: &[ImageAndView],
    swapchain: vk::SwapchainKHR,
  ) {
    info!("Destrying render target views...");
    for view in render_targets.iter() {
      device_bundle
        .logical_device
        .destroy_image_view(view.view, None);
    }
    // TODO(issue#9) OFFSCREEN if images and not swapchain destroy images.
    // TODO(issue#9) OFFSCREEN if there is one, if not destroy images (as above todo
    // states).
    info!("Destrying swapchain...");
    let swapchain_functions = &self.swapchain_and_extension.swapchain_functions;
    swapchain_functions.destroy_swapchain(swapchain, None);
  }
pub unsafe fn cleanup_render_targets ( & self , device_bundle : & VulkanDeviceStructures , render_targets : & [ ImageAndView ] , swapchain : vk :: SwapchainKHR , ) { info ! ( " " ) ; for view in render_targets . iter ( ) { device_bundle . logical_device . destroy_image_view ( view . view , None ) ; } // TODO(issue#9) OFFSCREEN if images and not swapchain destroy images. // TODO(issue#9) OFFSCREEN if there is one, if not destroy images (as above todo // states). info ! ( " " ) ; let swapchain_functions = & self . swapchain_and_extension . swapchain_functions ; swapchain_functions . destroy_swapchain ( swapchain , None ) ; }
Useful during swapchain recreation, but the specific render targets and
swapchain to delete are specified, since the current ones are always
contained in the struct.
Useful during swapchain recreation but the specific render targets and swapchain to delete are specified since the current ones are always contained in the struct .
&self
device_bundle
&VulkanDeviceStructures
render_targets
&[ImageAndView]
swapchain
vk::SwapchainKHR