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

Add support for pipeline-overridable constants in web backend #5688

Merged
merged 4 commits into from
May 29, 2024

Conversation

DouglasDwyer
Copy link
Contributor

@DouglasDwyer DouglasDwyer commented May 11, 2024

Connections
#5500 - Pipeline-overridable constants

Description
I was excited to try out the new pipeline-overridable constants that were added in version 0.20, but unfortunately, I discovered that they didn't work on the web! This change copies the constants dictionary into the Javascript-side pipeline descriptors so that pipeline-overridable constants work with WebGPU.

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.

@DouglasDwyer DouglasDwyer requested a review from a team as a code owner May 11, 2024 16:06
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

thank you for looking into this!

wgpu/src/backend/webgpu.rs Outdated Show resolved Hide resolved
wgpu/src/backend/webgpu.rs Outdated Show resolved Hide resolved
@cwfitzgerald
Copy link
Member

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

Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

Thanks for the neatly documented util, much nicer :)

🟢 from my side, but let's hear out @cwfitzgerald now that he's in on the fun :)

@Wumpf Wumpf dismissed cwfitzgerald’s stale review May 20, 2024 06:28

concerns got addressed

@Wumpf Wumpf enabled auto-merge (squash) May 20, 2024 06:29
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.

Yeet!

@Wumpf Wumpf merged commit 071fb14 into gfx-rs:trunk May 29, 2024
25 checks passed
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.

None yet

3 participants