Is there interoperability between WebGPU in JS and wgpu in Rust? #3821
Unanswered
Gonkalbell
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Not currently, but would be good thing to possibly generalize with the existing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was thinking of trying to convert an existing tutorial from Javascript & WebGPU to Rust, so it could run both on the web and on desktop. Is it possible to convert between things like
wgpu::Device
to and fromGPUDevice
in Javascript, or access the underlying WebGPU objects from wgpu? This way, I'd be able to replace one function at a time, rather than rewrite everything at once or rely onweb_sys
.From looking through this crate, it seems like any
web_sys
stuff is kept as a private implementation detail, but I could have just missed something. If this isn't possible yet, is there any plan in the future to enable this interop?Beta Was this translation helpful? Give feedback.
All reactions