pub fn copy_image_to_buffer<D, Px>(
        &mut self,
        source: Arc<dyn ImageAccess>,
        destination: Arc<D>,
    ) -> Result<&mut Self, CopyBufferImageError>
    where
        D: TypedBufferAccess<Content = [Px]> + 'static,
        Px: Pixel,
    {
        self.ensure_outside_render_pass()?;

        let dims = source.dimensions().width_height_depth();
        self.copy_image_to_buffer_dimensions(source, destination, [0, 0, 0], dims, 0, 1, 0)
    }
/// Adds a command that copies from an image to a buffer.
// The data layout of the image on the gpu is opaque, as in, it is non of our business how the gpu stores the image.
// This does not matter since the act of copying the image into a buffer converts it to linear form.
Adds a command that copies from an image to a buffer.
The data layout of the image on the gpu is opaque, as in, it is non of our business how the gpu stores the image.
This does not matter since the act of copying the image into a buffer converts it to linear form.
Adds a command that copies from an image to a buffer . The data layout of the image on the gpu is opaque as in it is non of our business how the gpu stores the image . This does not matter since the act of copying the image into a buffer converts it to linear form .
pub fn copy_image_to_buffer<D, Px>(
        &mut self,
        source: Arc<dyn ImageAccess>,
        destination: Arc<D>,
    ) -> Result<&mut Self, CopyBufferImageError>
    where
        D: TypedBufferAccess<Content = [Px]> + 'static,
        Px: Pixel,
    {
        self.ensure_outside_render_pass()?;
        let dims = source.dimensions().width_height_depth();
        self.copy_image_to_buffer_dimensions(source, destination, [0, 0, 0], dims, 0, 1, 0)
    }
pub fn copy_image_to_buffer < D , Px > ( & mut self , source : Arc < dyn ImageAccess > , destination : Arc < D > , ) -> Result < & mut Self , CopyBufferImageError > where D : TypedBufferAccess < Content = [ Px ] > + ' static , Px : Pixel , { self . ensure_outside_render_pass ( ) ? ; let dims = source . dimensions ( ) . width_height_depth ( ) ; self . copy_image_to_buffer_dimensions ( source , destination , [ 0 , 0 , 0 ] , dims , 0 , 1 , 0 ) }
Adds a command that copies from an image to a buffer.
Adds a command that copies from an image to a buffer .
&mut self
source
Arc<dyn ImageAccess>
destination
Arc<D>
&mut self
source
Arc<dyn ImageAccess>
destination
Arc<D>