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.
This commit is contained in:
Bruce Mitchener authored and GitHub committed 2024-07-19 00:56:16 -04:00
1 parent 8aed6ed220
commit 20973d1cdc
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -39,6 +39,12 @@ Bottom level categories:
## Unreleased
### Bug Fixes
#### General
- Fix profiling with `tracy`. By @waywardmonkeys in [#5988](https://github.com/gfx-rs/wgpu/pull/5988)
## 22.0.0 (2024-07-17)
### Overview
+1 -1
View File
@@ -1566,7 +1566,7 @@ impl Global {
profiling::scope!(
"CommandEncoder::run_render_pass {}",
base.label.unwrap_or("")
base.label.as_deref().unwrap_or("")
);
let Some(cmd_buf) = pass.parent.as_ref() else {