wgpu
wgpu copied to clipboard
webgl fallback fails in some browsers.
Description
My understanding is that when the webgpu and webgl cargo features are enabled and Backends::all() is set, the adapter should attempt to be created with webgpu and then failing that fallback to webgl.
However that doesnt seem to be happening in chrome on my machine (linux) and chrome on a users machine (windows 10)
It does however seem to work fine on firefox on my machine.
This issue is not present in the wgpu examples, but I cant figure out what is different between the example and my (isolated) code
Repro steps
git clone -b fail_to_create_adapter_on_chrome https://github.com/rukai/wgpu_bug_report
cd wgpu_bug_report
cargo run-wasm --package wgpu_foo
Expected vs observed behavior I expect the project to work on chrome on my machine, it does not.
Extra materials
Fails on chrome:
Succeeds on firefox: