mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-10-30 22:11:50 +00:00
Helpful error message on empty backend
This commit is contained in:
parent
9f70c2e59f
commit
508b724dd7
@ -149,7 +149,9 @@ pub fn instance_get_adapter(instance_id: InstanceId, desc: &AdapterDescriptor) -
|
||||
PowerPreference::LowPower => low.or(high),
|
||||
PowerPreference::HighPerformance | PowerPreference::Default => high.or(low),
|
||||
};
|
||||
some.or(other).unwrap()
|
||||
some
|
||||
.or(other)
|
||||
.expect("No adapters found. Please enable the feature for one of the graphics backends: vulkan, metal, dx12, dx11")
|
||||
}
|
||||
|
||||
#[cfg(feature = "local")]
|
||||
|
Loading…
Reference in New Issue
Block a user