WebGL2 front-end + WASM backend = full software GPU #8771
mihailik
started this conversation in
Show and tell
Replies: 0 comments
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.
-
NPM WebGL2 module: https://www.npmjs.com/package/webgl2
Code on GitHub: https://github.com/mavity/webgl2
Demo: https://webgl2.was.hm/
Why
I've started on this project because I need heavy duty unit-testing and debugging tool for WebGL2 rendering. N-body problem calculation with all sorts of stretch targets.
Having struggled for a while, I looked around and turns out naga can be a building block around which I can build a predictable WebGL platform
What is it
I aim to implement WebGL2RenderingContext in WASM for both browser and node.js
Currently I have a proof of concept, and it works suprisingly well: 20FPS on cheap phone1
I made a couple opportunistic tweaks to naga/fork to parse WebGL2 syntax better.
Where next
To make it properly useful to me I need a bunch more work:
Plenty of work, but none of the rocket science type. This prototype lays the key groundwork.
Contacts
Reach out on BlueSky: 🍎was.hm2
Footnotes
5 year old cheap Android Realme 8 — mind you it's single threaded too ↩
and watch some of this tech at Newspeak House on 28 January in London ↩
Beta Was this translation helpful? Give feedback.
All reactions