summaryrefslogtreecommitdiffstats
path: root/wgpu/src/backend.rs
diff options
context:
space:
mode:
authorLibravatar Ian Douglas Scott <idscott@system76.com>2022-10-31 13:37:56 -0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-05 03:19:37 +0100
commit2c7c42ee93a61f39562590f6a75eb2dd8b220fb8 (patch)
tree83279bcbd9ef0ca5ea8c8b763d38259555640216 /wgpu/src/backend.rs
parent7b129917281baaa6688158c303922f94341ab69f (diff)
downloadiced-2c7c42ee93a61f39562590f6a75eb2dd8b220fb8.tar.gz
iced-2c7c42ee93a61f39562590f6a75eb2dd8b220fb8.tar.bz2
iced-2c7c42ee93a61f39562590f6a75eb2dd8b220fb8.zip
Move image/svg handling into `iced_graphics`
The `TextureStore` trait is implemented by the atlas, and can also be implemented in the glow renderer or in a software renderer. The API here may be improved in the future, but API stability is presumably not a huge issue since these types will only be used by renderer backends.
Diffstat (limited to '')
-rw-r--r--wgpu/src/backend.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/wgpu/src/backend.rs b/wgpu/src/backend.rs
index 80026673..efe35a3e 100644
--- a/wgpu/src/backend.rs
+++ b/wgpu/src/backend.rs
@@ -99,7 +99,7 @@ impl Backend {
}
#[cfg(any(feature = "image_rs", feature = "svg"))]
- self.image_pipeline.trim_cache();
+ self.image_pipeline.trim_cache(device, encoder);
}
fn flush(