Skip to content

Commit

Permalink
Fix missing binding in wgpu-core/src/instance.rs when profiling h…
Browse files Browse the repository at this point in the history
…as a backend enabled (#6422)
  • Loading branch information
cybersoulK authored Oct 18, 2024
1 parent 94e040b commit a8214b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wgpu-core/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,14 @@ impl Instance {
api_log!("Instance::enumerate_adapters");

let mut adapters = Vec::new();
for (_, instance) in self
for (_backend, instance) in self
.instance_per_backend
.iter()
.filter(|(backend, _)| backends.contains(Backends::from(*backend)))
{
profiling::scope!("enumerating", &*format!("{:?}", backend));
// NOTE: We might be using `profiling` without any features. The empty backend of this
// macro emits no code, so unused code linting changes depending on the backend.
profiling::scope!("enumerating", &*format!("{:?}", _backend));

let hal_adapters = unsafe { instance.enumerate_adapters(None) };
for raw in hal_adapters {
Expand Down

0 comments on commit a8214b6

Please sign in to comment.