Skip to content

Commit

Permalink
Convert new usages of crate::profile_scope! to profiling::scope!
Browse files Browse the repository at this point in the history
  • Loading branch information
teddemunnik committed Dec 15, 2024
1 parent 2ff6c4b commit dfd43aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/egui-wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl RenderState {

let trace_path = std::env::var("WGPU_TRACE");
let (device, queue) = {
crate::profile_scope!("request_device");
profiling::scope!("request_device");
adapter
.request_device(
&(*device_descriptor)(&adapter),
Expand All @@ -187,7 +187,7 @@ impl RenderState {
};

let capabilities = {
crate::profile_scope!("get_capabilities");
profiling::scope!("get_capabilities");
surface.get_capabilities(&adapter).formats
};
let target_format = crate::preferred_framebuffer_format(&capabilities)?;
Expand Down

0 comments on commit dfd43aa

Please sign in to comment.