gpu.js icon indicating copy to clipboard operation
gpu.js copied to clipboard

GPU.js will not load on browser with webgpu enabled due to native object named "GPU" being present

Open neurall opened this issue 4 years ago • 1 comments

* Enable webgpu in chrome flags. type GPU in console to see that GPU object already exists as native object on webgpu enabled browser. try load gpu.js observe error "Uncaught TypeError: GPU is not a constructor"

neurall avatar Sep 17 '21 11:09 neurall

Use new window.GPU.GPU(); instead.

kmcfate avatar Oct 12 '23 15:10 kmcfate