pub fn with_image(
        mut self,
        img: image::Image,
        sprite: &'a mut Option<WGPUSprite<Device>>,
    ) -> Self {
        self.total_width += img.width();
        self.max_height = self.max_height.max(img.height());
        self.images.push((img, sprite));
        self
    }
/// Add an image to be packed in to the atlas, along with a reference
/// to the `Option<Sprite>` which will store the sprite when the atlas is built.
Add an image to be packed in to the atlas, along with a reference
to the `Option` which will store the sprite when the atlas is built.
Add an image to be packed in to the atlas along with a reference to the ` Option ` which will store the sprite when the atlas is built .
pub fn with_image(
        mut self,
        img: image::Image,
        sprite: &'a mut Option<WGPUSprite<Device>>,
    ) -> Self {
        self.total_width += img.width();
        self.max_height = self.max_height.max(img.height());
        self.images.push((img, sprite));
        self
    }
pub fn with_image ( mut self , img : image :: Image , sprite : & ' a mut Option < WGPUSprite < Device > > , ) -> Self { self . total_width += img . width ( ) ; self . max_height = self . max_height . max ( img . height ( ) ) ; self . images . push ( ( img , sprite ) ) ; self }
Add an image to be packed in to the atlas, along with a reference
to the `Option<Sprite>` which will store the sprite when the atlas is built.
Add an image to be packed in to the atlas along with a reference to the ` Option<Sprite > ` which will store the sprite when the atlas is built .
mut self
img
image::Image
sprite
&'a mut Option<WGPUSprite<Device>>
mut self
img
image::Image
sprite
&'a mut Option<WGPUSprite<Device>>