Introduce internal_backend to iced_wgpu::Settings

This commit is contained in:
Héctor Ramón Jiménez 2021-03-25 11:27:31 +01:00
parent ab8dcf91bd
commit 883c7e71ae
4 changed files with 52 additions and 41 deletions

View file

@ -29,3 +29,12 @@ impl Default for Settings {
}
}
}
impl Settings {
/// Creates new [`Settings`] using environment configuration.
///
/// Currently, this is equivalent to calling [`Settings::default`].
pub fn from_env() -> Self {
Self::default()
}
}