diff options
Diffstat (limited to '')
| -rw-r--r-- | glow/src/image.rs | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/glow/src/image.rs b/glow/src/image.rs index 521a01e7..d3a25b5b 100644 --- a/glow/src/image.rs +++ b/glow/src/image.rs @@ -21,6 +21,9 @@ use glow::HasContext;  use std::cell::RefCell; +#[cfg(feature = "tracing")] +use tracing::info_span; +  #[derive(Debug)]  pub(crate) struct Pipeline {      program: <glow::Context as HasContext>::Program, @@ -148,6 +151,9 @@ impl Pipeline {          images: &[layer::Image],          layer_bounds: Rectangle<u32>,      ) { +        #[cfg(feature = "tracing")] +        let _ = info_span!("Glow::Image", "DRAW").entered(); +          unsafe {              gl.use_program(Some(self.program));              gl.bind_vertex_array(Some(self.vertex_array));  | 
