Birk Skyum
Birk Skyum12mo 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.12mo ago
No, support for webgpu is being worked on though. So that might land soon
crowlKats
crowlKats12mo ago
to follow that up: webgl2 most likely will never be implemented
ioB
ioB12mo 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