Birk Skyum
Birk Skyum9mo ago

Webgl2 in Deno i.e. for unit testing

nodejs has this challenge that there is no way to run webgl2 (or webgpu), i.e. for unit testing. There is a solution for webgl1, through the use of https://github.com/stackgl/headless-gl. Is there a way to run webgl2 in deno, headless?
3 Replies
marvinh.
marvinh.9mo ago
No, support for webgpu is being worked on though. So that might land soon
crowlKats
crowlKats9mo ago
to follow that up: webgl2 most likely will never be implemented
ioB
ioB9mo ago
*most likely never implemented in core I could see it being done as a really painful project in userland DJ has an open issue for it on his canvas impl