pub fn add(
        &mut self,
        atlas_texture: &Handle<Image>,
        tile_size: TileSize,
        texture_size: TextureSize,
        tile_spacing: Vec2,
        filter: FilterMode,
    ) {
        if !self.sizes.contains_key(&atlas_texture) {
            self.sizes.insert(
                atlas_texture.clone_weak(),
                (tile_size, texture_size, tile_spacing, filter),
            );
            self.prepare_queue.insert(atlas_texture.clone_weak());
        }
    }
/// Adds an atlas to the texture array cache.
Adds an atlas to the texture array cache.
Adds an atlas to the texture array cache .
pub fn add(
        &mut self,
        atlas_texture: &Handle<Image>,
        tile_size: TileSize,
        texture_size: TextureSize,
        tile_spacing: Vec2,
        filter: FilterMode,
    ) {
        if !self.sizes.contains_key(&atlas_texture) {
            self.sizes.insert(
                atlas_texture.clone_weak(),
                (tile_size, texture_size, tile_spacing, filter),
            );
            self.prepare_queue.insert(atlas_texture.clone_weak());
        }
    }
pub fn add ( & mut self , atlas_texture : & Handle < Image > , tile_size : TileSize , texture_size : TextureSize , tile_spacing : Vec2 , filter : FilterMode , ) { if ! self . sizes . contains_key ( & atlas_texture ) { self . sizes . insert ( atlas_texture . clone_weak ( ) , ( tile_size , texture_size , tile_spacing , filter ) , ) ; self . prepare_queue . insert ( atlas_texture . clone_weak ( ) ) ; } }
Adds an atlas to the texture array cache.
Adds an atlas to the texture array cache .
&mut self
atlas_texture
&Handle<Image>
tile_size
TileSize
texture_size
TextureSize
tile_spacing
Vec2
filter
FilterMode
&mut self
atlas_texture
&Handle<Image>
tile_size
TileSize
texture_size
TextureSize
tile_spacing
Vec2
filter
FilterMode