Fix undeclared base in profiling scopes.

This would cause compilation to fail if profiling was enabled.
This commit is contained in:
Kevin Reid authored and Connor Fitzgerald committed 2025-07-10 16:03:47 -04:00
1 parent 03f1b535ca
commit 81e6875312
3 files changed
+6 -2

No files matched your search

+4
View File
@@ -40,6 +40,10 @@ Bottom level categories:
## Unreleased
### Bug Fixes
- Fixed build error occurring when the `profiling` dependency is configured to have profiling active. By @kpreid in [#7916](https://github.com/gfx-rs/wgpu/pull/7916).
## v26.0.0 (2025-07-09)
### Major Features
+1 -1
View File
@@ -492,7 +492,7 @@ impl Global {
let pass_scope = PassErrorScope::Pass;
profiling::scope!(
"CommandEncoder::run_compute_pass {}",
base.label.as_deref().unwrap_or("")
pass.base.label.as_deref().unwrap_or("")
);
let cmd_buf = pass.parent.take().ok_or(EncoderStateError::Ended)?;
+1 -1
View File
@@ -1804,7 +1804,7 @@ impl Global {
let pass_scope = PassErrorScope::Pass;
profiling::scope!(
"CommandEncoder::run_render_pass {}",
base.label.as_deref().unwrap_or("")
pass.base.label.as_deref().unwrap_or("")
);
let cmd_buf = pass.parent.take().ok_or(EncoderStateError::Ended)?;