mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01:00
Fix undeclared base in profiling scopes.
This would cause compilation to fail if profiling was enabled.
This commit is contained in:
1 parent
03f1b535ca
commit
81e6875312
3 files changed
+6
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)?;
|
||||
|
||||
@@ -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)?;
|
||||
|
||||
Reference in new issue
Block a user