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

        let dims = destination.dimensions().width_height_depth();
        self.copy_buffer_to_image_dimensions(source, destination, [0, 0, 0], dims, 0, 1, 0)
    }
/// Adds a command that copies from a buffer to an image.
Adds a command that copies from a buffer to an image.
Adds a command that copies from a buffer to an image .
pub fn copy_buffer_to_image<S, Px>(
        &mut self,
        source: Arc<S>,
        destination: Arc<dyn ImageAccess>,
    ) -> Result<&mut Self, CopyBufferImageError>
    where
        S: TypedBufferAccess<Content = [Px]> + 'static,
        Px: Pixel,
    {
        self.ensure_outside_render_pass()?;
        let dims = destination.dimensions().width_height_depth();
        self.copy_buffer_to_image_dimensions(source, destination, [0, 0, 0], dims, 0, 1, 0)
    }
pub fn copy_buffer_to_image < S , Px > ( & mut self , source : Arc < S > , destination : Arc < dyn ImageAccess > , ) -> Result < & mut Self , CopyBufferImageError > where S : TypedBufferAccess < Content = [ Px ] > + ' static , Px : Pixel , { self . ensure_outside_render_pass ( ) ? ; let dims = destination . dimensions ( ) . width_height_depth ( ) ; self . copy_buffer_to_image_dimensions ( source , destination , [ 0 , 0 , 0 ] , dims , 0 , 1 , 0 ) }
Adds a command that copies from a buffer to an image.
Adds a command that copies from a buffer to an image .
&mut self
source
Arc<S>
destination
Arc<dyn ImageAccess>
&mut self
source
Arc<S>
destination
Arc<dyn ImageAccess>