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: Read environment variable configs in hello_triangle example #6698

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

fryeb
Copy link

@fryeb fryeb commented Dec 11, 2024

Connections
The hello_triangle doesn't support switching backends, leading to confusing errors like this one: #4247

Description
This adds support for the WGPU_* environment variables to the hello_triangle example, so that backend-specific issues can more quickly be narrowed down and fixes.

Testing
I've tested this manually, not sure if there is a better procedure for automatically testing these things

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • 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.

@fryeb fryeb requested a review from a team as a code owner December 11, 2024 01:41
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

LGTM, pending accidental .lock changes

(Reminder: please re-request a review from me once the changes are addressed to make sure I see it!)

Copy link
Member

Choose a reason for hiding this comment

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

Seemed to accidentally include some cargo.lock changes

@cwfitzgerald cwfitzgerald self-assigned this Dec 11, 2024
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