-
-
Notifications
You must be signed in to change notification settings - Fork 836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
desktop: Improve backend selection #15647
Conversation
daffbd6
to
8bb0aea
Compare
wgpu::Backends::empty() | ||
} else { | ||
backend | ||
} | ||
} | ||
|
||
fn find_available_graphics_backends() -> wgpu::Backends { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
earlier you mentioned that
I think we can remove that code now, wgpu added an api to show which backends are (roughly) available
Just wanna make sure whether that was checked :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, turns out that's unreleased still :(
wgpu::Instance::enabled_backend_features()
in the next major wgpu update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approve, assuming review notes are checked
8bb0aea
to
f621be0
Compare
We now try every single backend one-by-one to work around gfx-rs/wgpu#2384 & gfx-rs/wgpu#5324