diff options
author | 2024-02-10 00:38:25 +0100 | |
---|---|---|
committer | 2024-02-10 00:38:25 +0100 | |
commit | 8a8c1ab2c8a0777425c60d4a36d6dd4b2589501f (patch) | |
tree | c402961162956ff636a144a3ba231b046df64ca8 /examples/gradient | |
parent | 81bed94148dfdc60997d14db603a4c7f2d13bb51 (diff) | |
download | iced-8a8c1ab2c8a0777425c60d4a36d6dd4b2589501f.tar.gz iced-8a8c1ab2c8a0777425c60d4a36d6dd4b2589501f.tar.bz2 iced-8a8c1ab2c8a0777425c60d4a36d6dd4b2589501f.zip |
Log available formats and alpha modes in `wgpu::window::compositor`
Diffstat (limited to 'examples/gradient')
-rw-r--r-- | examples/gradient/Cargo.toml | 5 | ||||
-rw-r--r-- | examples/gradient/src/main.rs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/examples/gradient/Cargo.toml b/examples/gradient/Cargo.toml index 2dea2c4f..8102b866 100644 --- a/examples/gradient/Cargo.toml +++ b/examples/gradient/Cargo.toml @@ -5,4 +5,7 @@ edition = "2021" publish = false [dependencies] -iced = { path = "../.." } +iced.workspace = true +iced.features = ["debug"] + +tracing-subscriber = "0.3" diff --git a/examples/gradient/src/main.rs b/examples/gradient/src/main.rs index 5eacd7a6..32b2e4aa 100644 --- a/examples/gradient/src/main.rs +++ b/examples/gradient/src/main.rs @@ -9,6 +9,8 @@ use iced::{ }; pub fn main() -> iced::Result { + tracing_subscriber::fmt::init(); + Gradient::run(Settings { window: window::Settings { transparent: true, |