gpujs / gpu.js

GPU Accelerated JavaScript
https://gpu.rocks
MIT License
15.08k stars 650 forks source link

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

Open neurall opened 2 years ago

neurall commented 2 years ago

* 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"

kmcfate commented 10 months ago

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