mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-24 15:54:00 +00:00
Fix missing binding in wgpu-core/src/instance.rs
when profiling
has a backend enabled (#6422)
This commit is contained in:
parent
94e040bc8a
commit
a8214b67f6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user