Store wgpu::Backend in image::Atlas

This commit is contained in:
Héctor Ramón Jiménez 2025-05-04 22:46:51 +02:00
parent 16703ccdef
commit 2d2888ee03
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 11 additions and 22 deletions

View file

@ -93,7 +93,6 @@ impl Cache {
pub fn upload(
&mut self,
device: &wgpu::Device,
backend: wgpu::Backend,
encoder: &mut wgpu::CommandEncoder,
handle: &svg::Handle,
color: Option<Color>,
@ -168,8 +167,8 @@ impl Cache {
});
}
let allocation = atlas
.upload(device, backend, encoder, width, height, &rgba)?;
let allocation =
atlas.upload(device, encoder, width, height, &rgba)?;
log::debug!("allocating {id} {width}x{height}");