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

Fix cases in which instance creation may not create any context #5059

Merged

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Jan 14, 2024

Connections

Description
See description:

  • When wgpu_core isn't enabled, don't detect lack of webgpu support right away, this would lead to reaching an unrechable! whenever webgpu isn't supported by the browser
  • any_backend_feature_enabled didn't take emscripten into account

Testing
Hit this when running an application with various feature combinations off latest trunk, this resolves it!

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • [ ] Run cargo xtask test to run tests.
  • [ ] Add change to CHANGELOG.md. See simple instructions inside file.

@Wumpf Wumpf requested a review from a team as a code owner January 14, 2024 18:34
wgpu/src/lib.rs Outdated Show resolved Hide resolved
wgpu/src/lib.rs Outdated Show resolved Hide resolved
Co-authored-by: daxpedda <daxpedda@gmail.com>
@Wumpf Wumpf merged commit 1da093f into gfx-rs:trunk Jan 15, 2024
27 checks passed
@Wumpf Wumpf deleted the fix-instance-creation-not-selecting-any-context branch January 15, 2024 11:16
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.

3 participants