Skip to content

Re-vendor WebGPU#9090

Open
evilpie wants to merge 4 commits intogfx-rs:trunkfrom
evilpie:vendor
Open

Re-vendor WebGPU#9090
evilpie wants to merge 4 commits intogfx-rs:trunkfrom
evilpie:vendor

Conversation

@evilpie
Copy link
Copy Markdown
Contributor

@evilpie evilpie commented Feb 21, 2026

Connections

Description

This updates the WebGPU binding from wasm-bindgen/web-sys to the latest version. I had to modify the vendor script, because it can now reference other kind of ExternalResources, in particular the still unstable VideoFrame.

Testing
Explain how this change is tested.

Squash or Rebase?

Rebase

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

@evilpie

This comment was marked as outdated.

@evilpie evilpie changed the title Upadate wasm-bindgen Upadate wasm-bindgen and re-vendor WebGPU Feb 21, 2026
@evilpie

This comment was marked as outdated.

@ErichDonGubler ErichDonGubler changed the title Upadate wasm-bindgen and re-vendor WebGPU Update wasm-bindgen and re-vendor WebGPU Feb 23, 2026
@evilpie evilpie force-pushed the vendor branch 2 times, most recently from 3e1d8f6 to 0d45ff2 Compare March 6, 2026 10:30
@evilpie evilpie changed the title Update wasm-bindgen and re-vendor WebGPU Re-vendor WebGPU Mar 6, 2026
@evilpie evilpie marked this pull request as ready for review March 6, 2026 10:38
@evilpie evilpie marked this pull request as draft March 6, 2026 10:46
@evilpie evilpie marked this pull request as ready for review March 6, 2026 11:02
@evilpie evilpie marked this pull request as draft March 6, 2026 19:18
@evilpie evilpie marked this pull request as ready for review March 6, 2026 19:18
@evilpie evilpie marked this pull request as draft March 7, 2026 06:54
@evilpie
Copy link
Copy Markdown
Contributor Author

evilpie commented Mar 7, 2026

Might as well wait for VideoFrame to become stable.

@cwfitzgerald
Copy link
Copy Markdown
Member

cwfitzgerald commented Mar 7, 2026

That may that months or years, so id prefer us to also vendor video frame for the compiler, but not expose it.

@evilpie
Copy link
Copy Markdown
Contributor Author

evilpie commented Mar 7, 2026

VideoFrame would be in the next release. wasm-bindgen/wasm-bindgen#5008

@cwfitzgerald
Copy link
Copy Markdown
Member

Oh nice, alright!

wgt::ExternalImageSource::VideoFrame(ref v) => unsafe {
todo!()
/*
gl.tex_sub_image_3d_with_video_frame(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Almost ready, but for some reason this method doesn't exist. @cwfitzgerald any ideas?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah the problem is that it too is behind a cfg(web_sys_unstable_apis) so this would need a PR to glow to remove it https://docs.rs/crate/glow/latest/source/src/web_sys.rs#1402-1437.

Up to you the order which this happens.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I opened a PR grovesNL/glow#361, but glow seems to be released quite seldom.

@evilpie evilpie marked this pull request as ready for review March 28, 2026 13:49
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