summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar edwloef <edwin.frank.loeffler@gmail.com>2024-09-30 11:02:30 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-10-02 15:24:37 +0200
commita5c42d4cb171fd408a9273e8ec6183f5091abae7 (patch)
treea5ed8e747301a95369e74aaef4e576f2ed1af51d /wgpu
parent75548373a761d66df364494267c89697dda91fbe (diff)
downloadiced-a5c42d4cb171fd408a9273e8ec6183f5091abae7.tar.gz
iced-a5c42d4cb171fd408a9273e8ec6183f5091abae7.tar.bz2
iced-a5c42d4cb171fd408a9273e8ec6183f5091abae7.zip
Derive `Default` for `iced_wgpu::geometry::Cache`
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/src/geometry.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/wgpu/src/geometry.rs b/wgpu/src/geometry.rs
index a27cef07..d2ffda53 100644
--- a/wgpu/src/geometry.rs
+++ b/wgpu/src/geometry.rs
@@ -31,7 +31,7 @@ pub enum Geometry {
Cached(Cache),
}
-#[derive(Debug, Clone)]
+#[derive(Debug, Clone, Default)]
pub struct Cache {
pub meshes: Option<triangle::Cache>,
pub images: Option<Arc<[Image]>>,