diff --git a/src/lib.rs b/src/lib.rs index 8acf3ea19..efbe74a95 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -153,6 +153,7 @@ impl Renderer { let blit = options .surface_format .map(|surface_format| BlitPipeline::new(device, surface_format)); + #[cfg(feature = "wgpu-profiler")] let timestamp_period = options.timestamp_period; Ok(Self { options,