-
Notifications
You must be signed in to change notification settings - Fork 257
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
Proposal: WASI Windowing #584
Comments
I don't have experience with Windowing APIs, but I can answer some things here:
Yes, I recommend starting with this. It's simple, it can be implemented with current features, and it's probably good enough to get quite far.
Another option might be to model incoming events as a
The first thing to do would be to write an initial Wit interface, and if possible, the next is to prototype it, similar to the wasi-webgpu prototype. That way, it'll be easier to answer questions about how this should relate to webgpu and other APIs. |
I created a repository now and added an in-progress WIT definition. How can I test the definitions in |
Cool! And yes, for some examples see the example-runtime in the wasi-webgpu prototype, or the hello-embedded prototype. |
I made a first working prototype now. I had a problem with I think I'll use event data provided by Test instructions: cd example-apps/example1
cargo component build --release
cd ../../example-runtime
cargo run example1 |
Hi 👋, wasi-webgpu champion here. |
I am now.
I'm more familiar with Matrix, but Zulip seems similar. |
Introduction
In case windowing is deemed out-of-scope for #578, there should be a separate proposal for WASI windowing. Given that that proposal is based on bringing WebGPU to WASI and
wgpu
and WebGPU deem window/canvas creation out-of-scope, it's likely a similar solution to thewinit
Rust crate is needed for WASI.Goals
MVP
The MVP of this proposal should include a way to create windows/canvases and receive input events for them. It should be easy to polyfill for the Web and implementable in engines via e.g. the
winit
crate. The window handle should be usable in the WASI WebGPU proposal.Post-MVP
Include querying of window system capabilities that are supported, including:
And functions to do these actions.
Discussion
The text was updated successfully, but these errors were encountered: