Skip to content

Commit 20973d1

Browse files
Fix profiling with tracy. (#5988)
The profiling APIs require a `&str`, but since the label here is now an `Option<String>`, we must get a `&str` from it.
1 parent 8aed6ed commit 20973d1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ Bottom level categories:
3939

4040
## Unreleased
4141

42+
### Bug Fixes
43+
44+
#### General
45+
46+
- Fix profiling with `tracy`. By @waywardmonkeys in [#5988](https://github.com/gfx-rs/wgpu/pull/5988)
47+
4248
## 22.0.0 (2024-07-17)
4349

4450
### Overview

wgpu-core/src/command/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ impl Global {
15661566

15671567
profiling::scope!(
15681568
"CommandEncoder::run_render_pass {}",
1569-
base.label.unwrap_or("")
1569+
base.label.as_deref().unwrap_or("")
15701570
);
15711571

15721572
let Some(cmd_buf) = pass.parent.as_ref() else {

0 commit comments

Comments
 (0)