Fix undeclared base in profiling scopes.

This would cause compilation to fail if profiling was enabled.
This commit is contained in:
Kevin Reid 2025-07-10 09:39:06 -07:00 committed by Connor Fitzgerald
parent dc924bc715
commit da6ccd5516
3 changed files with 6 additions and 2 deletions

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

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)?;

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)?;