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

Vendor WebGPU Bindings from web_sys #5325

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

cwfitzgerald
Copy link
Member

@cwfitzgerald cwfitzgerald commented Mar 1, 2024

Connections

Closes #5258
Closes #5224

Description

This PR:

  • adds a script to our xtask which automatically vendors the web_sys bindings from a particular checkout of wasm-bindgen.
  • converts our webgpu bindings to those bindings.
  • vastly simplifes the xtask code

We do not use it public-ally, so this is not a breaking change. I plan to backport this.

cc @daxpedda

Testing

Manual testing of WebGPU, CI, and building manually.

@cwfitzgerald cwfitzgerald requested a review from a team as a code owner March 1, 2024 05:42
@cwfitzgerald cwfitzgerald added the PR: needs back-porting PR with a fix that needs to land on crates label Mar 1, 2024
@cwfitzgerald cwfitzgerald force-pushed the web-sys-vendor branch 2 times, most recently from 5d6a1cf to 9cfa905 Compare March 1, 2024 06:11
Copy link
Contributor

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

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

Getting rid of --cfg=web_sys_unstable_apis is going to be a big improvment in the user experience!

CHANGELOG.md Show resolved Hide resolved
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.

wow, you made this look way more straight forward than I thought it could be. Awesome!!

wgpu/src/backend/webgpu/webgpu_sys/gen_Gpu.rs Show resolved Hide resolved
wgpu/src/backend/webgpu/ext_bindings.rs Show resolved Hide resolved
Copy link
Collaborator

@grovesNL grovesNL left a comment

Choose a reason for hiding this comment

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

Really cool, thanks for doing this! I wish vendoring wasn't necessary but it seems like the best path forward until it stabilizes.

@cwfitzgerald cwfitzgerald enabled auto-merge (squash) March 1, 2024 20:59
@cwfitzgerald cwfitzgerald merged commit aaf6db6 into gfx-rs:trunk Mar 1, 2024
28 checks passed
cwfitzgerald added a commit to cwfitzgerald/wgpu that referenced this pull request Mar 1, 2024
@cwfitzgerald cwfitzgerald mentioned this pull request Mar 1, 2024
cwfitzgerald added a commit to cwfitzgerald/wgpu that referenced this pull request Mar 1, 2024
cwfitzgerald added a commit to cwfitzgerald/wgpu that referenced this pull request Mar 1, 2024
@cwfitzgerald cwfitzgerald deleted the web-sys-vendor branch March 1, 2024 22:14
@cwfitzgerald cwfitzgerald removed the PR: needs back-porting PR with a fix that needs to land on crates label Mar 1, 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.

Document web-sys version/API mismatch issues
5 participants