mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-30 18:14:18 +01:00
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:
1 parent
8aed6ed220
commit
20973d1cdc
2 files changed
+7
-1
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user