mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Fix undeclared base in profiling scopes.
This would cause compilation to fail if profiling was enabled.
This commit is contained in:
parent
dc924bc715
commit
da6ccd5516
@ -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)?;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user