Skip to content
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

Merged
merged 3 commits into from
Mar 24, 2024

Conversation

Dinnerbone
Copy link
Contributor

We now try every single backend one-by-one to work around gfx-rs/wgpu#2384 & gfx-rs/wgpu#5324

wgpu::Backends::empty()
} else {
backend
}
}

fn find_available_graphics_backends() -> wgpu::Backends {
Copy link
Collaborator

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

Copy link
Contributor Author

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

Copy link
Collaborator

@adrian17 adrian17 left a 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

@Dinnerbone Dinnerbone merged commit ad34f04 into ruffle-rs:master Mar 24, 2024
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants