Re-vendor WebGPU#9090
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
3e1d8f6 to
0d45ff2
Compare
|
Might as well wait for VideoFrame to become stable. |
|
That may that months or years, so id prefer us to also vendor video frame for the compiler, but not expose it. |
|
VideoFrame would be in the next release. wasm-bindgen/wasm-bindgen#5008 |
|
Oh nice, alright! |
Wumpf
left a comment
There was a problem hiding this comment.
nice, a lot of backend/webgpu looks a lot better with this now! However, you got a questionable leftover (?) todo there, I trust you did try out WebGPU?
| wasm_bindgen::JsValue::from(map_texture_format(*format)) | ||
| .dyn_into::<js_sys::JsString>() | ||
| .unwrap() |
There was a problem hiding this comment.
[not actionable] very annoying unwraps, but can't see away around them either, seems like a general problem with websys enums :/
09ebbdb to
d43e3f0
Compare
d3174d3 to
5bef7ee
Compare
|
So, finally got this green (hopefully). |
Wumpf
left a comment
There was a problem hiding this comment.
looks all good to me now! Also gave it a spin locally as well just for good measure, seems fine :)
Thanks for all the work!
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
cargo fmt.taplo format.cargo clippy --tests. If applicable, add:--target wasm32-unknown-unknowncargo xtask testto run tests.CHANGELOG.mdentry.