Skip to content

Commit 81e6875

Browse files
kpreidcwfitzgerald
authored andcommitted
Fix undeclared base in profiling scopes.
This would cause compilation to fail if profiling was enabled.
1 parent 03f1b53 commit 81e6875

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ Bottom level categories:
4040

4141
## Unreleased
4242

43+
### Bug Fixes
44+
45+
- 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).
46+
4347
## v26.0.0 (2025-07-09)
4448

4549
### Major Features

wgpu-core/src/command/compute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ impl Global {
492492
let pass_scope = PassErrorScope::Pass;
493493
profiling::scope!(
494494
"CommandEncoder::run_compute_pass {}",
495-
base.label.as_deref().unwrap_or("")
495+
pass.base.label.as_deref().unwrap_or("")
496496
);
497497

498498
let cmd_buf = pass.parent.take().ok_or(EncoderStateError::Ended)?;

wgpu-core/src/command/render.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ impl Global {
18041804
let pass_scope = PassErrorScope::Pass;
18051805
profiling::scope!(
18061806
"CommandEncoder::run_render_pass {}",
1807-
base.label.as_deref().unwrap_or("")
1807+
pass.base.label.as_deref().unwrap_or("")
18081808
);
18091809

18101810
let cmd_buf = pass.parent.take().ok_or(EncoderStateError::Ended)?;

0 commit comments

Comments
 (0)