Open okikio opened 1 week ago
Probably related to #25874
Currently, first access to the adapter.info
getter property after getting the device throws an exception.
It is a strange code, but I think it may be possible to execute the following code as a workaround:
const adapter = await navigator.gpu.requestAdapter();
// first access to adapter.info *before* getting the device
adapter?.info;
const device = await adapter?.requestDevice();
console.log({
adapter,
})
Interesting @petamoriken you're right so this is probs a bug in Deno
I try to fix this issue.
Version: Deno 2.0.5
On Windows, Linux, and Mac OS trying to log out the WebGPU adapter causes an assertion error which is unexpected and was rather difficult to debug, interestingly enough logging out the actual adapter device works as expected it prints out an object.
I'm not sure if the assertion error is expected behaviour or not but I've not found any documentation that specifies this behaviour, so I'm thinking it's a bug.
Assertion Error: