diff options
author | 2019-10-07 04:05:40 +0200 | |
---|---|---|
committer | 2019-10-07 04:05:40 +0200 | |
commit | c9da3a10d9c4fcc9504b25eed873708406e3a9c7 (patch) | |
tree | e88ddd243e709995b69841bd9575afcc12f9281a /wgpu | |
parent | c9510db551893775d3233340dd114d971e24323a (diff) | |
download | iced-c9da3a10d9c4fcc9504b25eed873708406e3a9c7.tar.gz iced-c9da3a10d9c4fcc9504b25eed873708406e3a9c7.tar.bz2 iced-c9da3a10d9c4fcc9504b25eed873708406e3a9c7.zip |
Use `log` crate instead of `dbg!`
Diffstat (limited to 'wgpu')
-rw-r--r-- | wgpu/Cargo.toml | 1 | ||||
-rw-r--r-- | wgpu/src/renderer.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml index 79661baa..20fe9ae9 100644 --- a/wgpu/Cargo.toml +++ b/wgpu/Cargo.toml @@ -15,3 +15,4 @@ iced_native = { version = "0.1.0-alpha", path = "../native" } wgpu = "0.3" wgpu_glyph = "0.4" raw-window-handle = "0.1" +log = "0.4" diff --git a/wgpu/src/renderer.rs b/wgpu/src/renderer.rs index 8e69a91a..926f12ae 100644 --- a/wgpu/src/renderer.rs +++ b/wgpu/src/renderer.rs @@ -96,6 +96,8 @@ impl Renderer { } pub fn draw(&mut self, target: &mut Target, primitive: &Primitive) { + log::debug!("Drawing"); + let frame = target.swap_chain.get_next_texture(); let mut encoder = self |