-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
WebGPU Implementation #7863
Comments
Glad you're looking into this. I was imagining we would start with a windowless setup. The goal is to run tensorflow.js's WebGPU backend. |
[citation needed] I think the more useful use-case would be ML (TF with WebGPU backend), server side image processing, and other GPU compute tasks. I'm not sure how much sense it would make to write a UI in raw wgpu when you're writing JS/TS. Seems like a questionable pairing, and people probably should just host a PWA on the localhost and render in their browser if they want a GUI. |
@0kku good point, didnt really think about that |
I came up with a solution for adding window support for webgpu without adding any other deps. |
@crowlKats Considering the open PR, shall I formally abandon chances/deno-wgpu, i.e. archive the repo and link back here? |
@chances would make sense |
See denoland/deno#7863 for progress of WebGPU integration into Deno
Hey, not sure where to ask, is this going to be optional somehow? It seems like quite a big feature, including WSGL parser, compiler, there's some runtime memory overhead as well. I'd expect this to be a native plugin. Webview was also possible with plugin so why not this? |
@cztomsik This is a Web API. We implement these out of the box, without the need for external plugins (see |
@cztomsik That is why it is experimental, and locked behind the Editor's draft spec: https://gpuweb.github.io/gpuweb/ |
Times are changing, and WebGPU is enabled by default in Chrome. Can this be reopened for a discussion around this in the present context? |
Perhaps this is out of the scope, but what about ressurrecting the project https://github.com/denosaurs/pane, or to create winit bindings. winit works well with wgpu. rust-windowing also has the repo https://github.com/rust-windowing/softbuffer which would allow creating 2D buffer/image, and would help on #3234 . |
Totally! I think it would not require much to bring back pane now that webgpu support is coming back. |
I have been looking at the WebGPU spec and the
wgpu
crate for a possible WebGPU implementation which arose from a discussion on the discord server.Problem is, how would we handle the window on which the user would draw to? Adding a window manager to deno would definitively not be a viable solution.
wgpu-rs
does actually allow to have a windowless setup, but i think most end users would actually want a way to have some sort of window. A window is also required for usage of swap chains; which, once again, many users would want.The text was updated successfully, but these errors were encountered: