Note
I'm no longer working on this project because I have just realized macOS does not support OpenGL ES API, and adding Desktop GL backend to this module is a lot of work which I'm not going to do right now. And just dropping macOS support is not an option for me. Feel free to contribute Desktop GL support if you wanna work on it.
However, there is another great and recommended API for GPU stuff - WebGPU, which Deno supports out of the box. There is no windowing support though, which the team does not want to add in Deno itself either so I have a WIP implementation for that here.
deno_gl
WebGL API implementation for Deno, built on GLFW using FFI.
TODO
There are couple of bugs to fix yet. Most of them are unknown, which simply cause libraries like Tensorflow.js WebGL backend to return values zeroed out.
Usage
- Make
dist
directory if it doesn't exist. - Download GLFW from its website and place
[lib]glfw3.[so|dll|dylib]
indist
.
License
Apache-2.0. Check LICENSE for more info.
Copyright 2022 © DjDeveloperr