Derive Default for iced_wgpu::geometry::Cache

This commit is contained in:
edwloef 2024-09-30 11:02:30 +02:00 committed by Héctor Ramón Jiménez
parent 75548373a7
commit a5c42d4cb1
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -31,7 +31,7 @@ pub enum Geometry {
Cached(Cache), Cached(Cache),
} }
#[derive(Debug, Clone)] #[derive(Debug, Clone, Default)]
pub struct Cache { pub struct Cache {
pub meshes: Option<triangle::Cache>, pub meshes: Option<triangle::Cache>,
pub images: Option<Arc<[Image]>>, pub images: Option<Arc<[Image]>>,