fn register_swapchain_images(
    resource_manager: &mut ResourceManager,
    surface: &mut VkSurface,
) -> Vec<ResourceArc<ImageResource>> {
    surface
        .swapchain()
        .swapchain_images
        .iter()
        .map(|&image| {
            // Register the swapchain image as an image resource. This lets us pass it to the render graph
            resource_manager.resources().insert_raw_image(VkImageRaw {
                image,
                allocation: None,
            })
        })
        .collect()
}
// This takes all the swapchain images, registers them with the resource manager, and returns the
// ResourceArcs. While ResourceArcs are reference counted, the swapchain images still belong to the
// swapchain.
This takes all the swapchain images, registers them with the resource manager, and returns the
ResourceArcs. While ResourceArcs are reference counted, the swapchain images still belong to the
swapchain.
This takes all the swapchain images registers them with the resource manager and returns the ResourceArcs . While ResourceArcs are reference counted the swapchain images still belong to the swapchain .
fn register_swapchain_images(
    resource_manager: &mut ResourceManager,
    surface: &mut VkSurface,
) -> Vec<ResourceArc<ImageResource>> {
    surface
        .swapchain()
        .swapchain_images
        .iter()
        .map(|&image| {
            // Register the swapchain image as an image resource. This lets us pass it to the render graph
            resource_manager.resources().insert_raw_image(VkImageRaw {
                image,
                allocation: None,
            })
        })
        .collect()
}
fn register_swapchain_images ( resource_manager : & mut ResourceManager , surface : & mut VkSurface , ) -> Vec < ResourceArc < ImageResource > > { surface . swapchain ( ) . swapchain_images . iter ( ) . map ( | & image | { // Register the swapchain image as an image resource. This lets us pass it to the render graph resource_manager . resources ( ) . insert_raw_image ( VkImageRaw { image , allocation : None , } ) } ) . collect ( ) }
This takes all the swapchain images, registers them with the resource manager, and returns the
ResourceArcs.
This takes all the swapchain images registers them with the resource manager and returns the ResourceArcs .
resource_manager
&mut ResourceManager
surface
&mut VkSurface
resource_manager
&mut ResourceManager
surface
&mut VkSurface