Closed
Description
In theory, our backend's Instance
creation would fail if a backend isn't available. This allows us to only enumerate the adapters of the backends exposed on a system.
However, it turns out that D3D12 backend doesn't fail gracefully: running a wgpu-rs
example on Windows 7 just fails instantly with a modal dialog saying that "d3d12.dll" can't be loaded. This means we have d3d12 implicitly linked on Windows, which is not what we want.
Technically, it's a problem down the stack: gfx-backend-dx12, winit, etc. But it's also a blocker for using wgpu-native
in Gecko, so we should resolve it quickly.