Skip to content
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

JS Web Target #18

Open
fubark opened this issue Apr 1, 2022 · 0 comments
Open

JS Web Target #18

fubark opened this issue Apr 1, 2022 · 0 comments
Milestone

Comments

@fubark
Copy link
Owner

fubark commented Apr 1, 2022

Cosmic should be able to target web with just plain JS. No wasm. See #19 for wasm.

This can be a lot of work since there isn't a nice way to convert zig to js. Why just JS? In many ways it can be faster than WASM on the web since WASM doesn't have native interop with things we care about in the browser runtime like the gpu. threejs and bablyonjs are all just JS.

WebGL2 will be the graphics target until WebGPU becomes a thing.
This work involves providing an API for all graphics related things. Things that don't make sense on the web will be a nop.

@fubark fubark added this to the v0.2 milestone Apr 1, 2022
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

No branches or pull requests

1 participant