pub unsafe fn from_raw(swapchain: Arc<Swapchain<W>>, id: usize)
                           -> Result<Arc<SwapchainImage<W>>, OomError> {
        let image = swapchain.raw_image(id).unwrap();
        let view = UnsafeImageView::raw(&image.image, ViewType::Dim2d, 0 .. 1, 0 .. 1)?;

        Ok(Arc::new(SwapchainImage {
                        swapchain: swapchain.clone(),
                        image_offset: id,
                        view: view,
                    }))
    }
/// Builds a `SwapchainImage` from raw components.
///
/// This is an internal method that you shouldn't call.
Builds a `SwapchainImage` from raw components.
This is an internal method that you shouldn't call.
Builds a ` SwapchainImage ` from raw components . This is an internal method that you shouldn ' t call .
pub unsafe fn from_raw(swapchain: Arc<Swapchain<W>>, id: usize)
                           -> Result<Arc<SwapchainImage<W>>, OomError> {
        let image = swapchain.raw_image(id).unwrap();
        let view = UnsafeImageView::raw(&image.image, ViewType::Dim2d, 0 .. 1, 0 .. 1)?;
        Ok(Arc::new(SwapchainImage {
                        swapchain: swapchain.clone(),
                        image_offset: id,
                        view: view,
                    }))
    }
pub unsafe fn from_raw ( swapchain : Arc < Swapchain < W > > , id : usize ) -> Result < Arc < SwapchainImage < W > > , OomError > { let image = swapchain . raw_image ( id ) . unwrap ( ) ; let view = UnsafeImageView :: raw ( & image . image , ViewType :: Dim2d , 0 .. 1 , 0 .. 1 ) ? ; Ok ( Arc :: new ( SwapchainImage { swapchain : swapchain . clone ( ) , image_offset : id , view : view , } ) ) }
Builds a `SwapchainImage` from raw components.
Builds a ` SwapchainImage ` from raw components .
swapchain
Arc<Swapchain<W>>
id
usize
swapchain
Arc<Swapchain<W>>
id
usize