pub fn insert_raw_image(
        &self,
        raw_image: VkImageRaw,
    ) -> ResourceArc<ImageResource> {
        let image_id = self.inner.next_image_id.fetch_add(1, Ordering::Relaxed);

        let image_key = ImageKey { id: image_id };

        let resource = ImageResource {
            image: raw_image,
            image_key: Some(image_key),
        };

        self.inner
            .images
            .create(&image_key, || Ok(resource))
            .unwrap()
    }
// This is useful for inserting swapchain images
This is useful for inserting swapchain images
This is useful for inserting swapchain images
pub fn insert_raw_image(
        &self,
        raw_image: VkImageRaw,
    ) -> ResourceArc<ImageResource> {
        let image_id = self.inner.next_image_id.fetch_add(1, Ordering::Relaxed);
        let image_key = ImageKey { id: image_id };
        let resource = ImageResource {
            image: raw_image,
            image_key: Some(image_key),
        };
        self.inner
            .images
            .create(&image_key, || Ok(resource))
            .unwrap()
    }
pub fn insert_raw_image ( & self , raw_image : VkImageRaw , ) -> ResourceArc < ImageResource > { let image_id = self . inner . next_image_id . fetch_add ( 1 , Ordering :: Relaxed ) ; let image_key = ImageKey { id : image_id } ; let resource = ImageResource { image : raw_image , image_key : Some ( image_key ) , } ; self . inner . images . create ( & image_key , | | Ok ( resource ) ) . unwrap ( ) }
This is useful for inserting swapchain images
This is useful for inserting swapchain images
&self
raw_image
VkImageRaw
&self
raw_image
VkImageRaw