diff options
Diffstat (limited to '')
-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 |