Description
Instance::request_adapter fails when instance is created with Backends::all(), and then a surface is initialized, and then request_adapter is called with a specific backend in an environment with 2 or more backends.
Repro steps
- Ensure you have two or more different backends.
- Update
instance_request_adapter to pass a single backend like wgt::Backends::DX12/VULKAN/METAL instead of wgt::Backends::all().
- Run the hello_triangle example
- Notice request_adapter fails, if it doesn't fail then cycle through other available backends on Step 2.
Expected vs observed behavior
request_adapter should succeed
Platform
macOS 14, Metal + MoltenVK