diff options
| author | 2022-12-20 20:41:09 -0800 | |
|---|---|---|
| committer | 2023-01-09 18:52:38 +0100 | |
| commit | 4b6d3797d43acb1d78a292a7ec712a0be7c8f6a2 (patch) | |
| tree | 1208a2c5b16a5e67093677df3a2d6bf159bff0f9 /wgpu/src/quad | |
| parent | c5cd236b7380c3689792934aeaecd2942713fa67 (diff) | |
| download | iced-4b6d3797d43acb1d78a292a7ec712a0be7c8f6a2.tar.gz iced-4b6d3797d43acb1d78a292a7ec712a0be7c8f6a2.tar.bz2 iced-4b6d3797d43acb1d78a292a7ec712a0be7c8f6a2.zip  | |
Restructured everything to make profiling a feature of iced_winit.
Diffstat (limited to '')
| -rw-r--r-- | wgpu/src/quad.rs | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/wgpu/src/quad.rs b/wgpu/src/quad.rs index 702122e1..2f5fcc6b 100644 --- a/wgpu/src/quad.rs +++ b/wgpu/src/quad.rs @@ -6,8 +6,8 @@ use bytemuck::{Pod, Zeroable};  use std::mem;  use wgpu::util::DeviceExt; -#[cfg(feature = "trace")] -use iced_profiling::info_span; +#[cfg(feature = "tracing")] +use tracing::info_span;  #[derive(Debug)]  pub struct Pipeline { @@ -176,7 +176,7 @@ impl Pipeline {          bounds: Rectangle<u32>,          target: &wgpu::TextureView,      ) { -        #[cfg(feature = "trace")] +        #[cfg(feature = "tracing")]          let _ = info_span!("Wgpu::Quad", "DRAW").entered();          let uniforms = Uniforms::new(transformation, scale); @@ -213,7 +213,7 @@ impl Pipeline {              instance_buffer.copy_from_slice(instance_bytes); -            #[cfg(feature = "trace")] +            #[cfg(feature = "tracing")]              let _ = info_span!("Wgpu::Quad", "BEGIN_RENDER_PASS").enter();              {  | 
