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

wgpu: Detect if buffers are unusable on web and fail to create wgpu renderer if so #9133

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

Dinnerbone
Copy link
Contributor

Until gfx-rs/wgpu#3371 is fixed, this will allow us to use wgpu "most of the time".

force_fallback_adapter: false,
})
.await
.ok_or_else(|| "Unsupported device".to_string())?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes us lose the nicer error message from build_descriptors. I think it would be better to better to call detect_buffer_bug from build_descriptors (possibly behind a flag).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll split up build_descriptors into the adapter finding stuff only, we need that anyway for the upcoming libretro stuff

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually no nvm that means multiple block_ons at the caller, that can be a later change. I'll add a param!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ended up with cfg'ing it since it's only for web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants