Merge pull request #2619 from edwloef/master

Derive `Default` for `iced_wgpu::geometry::Cache`
This commit is contained in:
Héctor 2024-10-02 15:34:06 +02:00 committed by GitHub
commit 40abed6e5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]>>,