Webgl2 in Deno i.e. for unit testing

BSBirk Skyum11/29/2023
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?
No, support for webgpu is being worked on though. So that might land soon
to follow that up: webgl2 most likely will never be implemented
*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

Looking for more? Join the community!

Recommended Posts
"A fetch response body was created during the test" when invoking a PUT request in a test?I'm writing a Deno library for uploading files on IPFS. The code is very simple: ```ts export consDeno.CommandI'm looking to run a child_process with readline and spawn. I've tried following examples and such. module not updating anymorei have a module which is not updating anymore it seems to be stuck on version 1.5 i already have pusHow Can I Delete Deno???I did this, but Deno still works! https://www.reddit.com/r/Deno/comments/xza84i/how_do_you_uninstallContributing doc is 404Refer to https://deno.com/manual/contributing (it is a part of deno's PR template)How to Extensions in JSRuntime ?Here's my function to create rt fn get_js_runtime() -> deno_core::JsRuntime { let extensions =Am I supposed to commit my vendor directory when deploying with the Github Action?My deploy failed with the message "The deployment failed: import map not found at 'file:///src/vendoWhere is the default/blank deploy.yml file?According to [this doc page](https://docs.deno.com/deploy/manual/ci_github), I should be redirected peer tailwind support in freshIs there support for tailwind `peer`s as described here in fresh? https://tailwindcss.com/docs/hoveDeno+vite crashes on node dependencyEarlier today I was happy because everything worked on my m1 macbook. When I've returned home (arch)Jetbrains IDEA imports incompatibleI have `deno.json` file with a custom import... on vscode with deno's extension not have a trouble, question.. web push notifications having trouble with modulesHi. I’m new to Deno. Overall I’ve been happy with is performance and how lightweight and secure it i