Hacker News new | ask | show | jobs
by daniel_rh 2872 days ago
Does this abstraction target WebGL as well? I could imagine it being a nice portability layer for web-aware apps since rust can easily target wasm with a few compiler flags.
2 comments

Ideally this should be straightforward by adapting the OpenGL ES backend to perform the equivalent WebGL calls. There have been some initial investigations into this already, and the Emscripten target worked well with an earlier version of gfx.

In the future there could be a backend to target WebGPU (https://www.w3.org/community/gpu/) as well.

They currently have support through the emscripten target, and (as far as I know) are working on support for the unknown target.