summaryrefslogtreecommitdiffstats
path: root/glow
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-03-25 11:41:52 +0100
committerLibravatar GitHub <noreply@github.com>2021-03-25 11:41:52 +0100
commitbf09f44d56ce097600f939c19d8c149c0cc4c1b1 (patch)
tree7010fec72aefa97a329eb4b29667e102017114dd /glow
parent2b520ca0984486d3ad930873837df8c819bab30c (diff)
parent883c7e71ae699a29c23b8f95b7335d015e5a985d (diff)
downloadiced-bf09f44d56ce097600f939c19d8c149c0cc4c1b1.tar.gz
iced-bf09f44d56ce097600f939c19d8c149c0cc4c1b1.tar.bz2
iced-bf09f44d56ce097600f939c19d8c149c0cc4c1b1.zip
Merge pull request #789 from Cupnfish/master
Add WGPU_BACKEND environment variable
Diffstat (limited to '')
-rw-r--r--glow/src/settings.rs9
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()
+ }
+}