diff options
author | 2021-03-25 11:27:31 +0100 | |
---|---|---|
committer | 2021-03-25 11:29:40 +0100 | |
commit | 883c7e71ae699a29c23b8f95b7335d015e5a985d (patch) | |
tree | 7010fec72aefa97a329eb4b29667e102017114dd /glow | |
parent | ab8dcf91bdcad6c8d0a39802f2823e65aafa8f0a (diff) | |
download | iced-883c7e71ae699a29c23b8f95b7335d015e5a985d.tar.gz iced-883c7e71ae699a29c23b8f95b7335d015e5a985d.tar.bz2 iced-883c7e71ae699a29c23b8f95b7335d015e5a985d.zip |
Introduce `internal_backend` to `iced_wgpu::Settings`
Diffstat (limited to 'glow')
-rw-r--r-- | glow/src/settings.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/glow/src/settings.rs b/glow/src/settings.rs index 524d91a9..8477eb57 100644 --- a/glow/src/settings.rs +++ b/glow/src/settings.rs @@ -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() + } +} |