2.18.2
Bug-fix release: browser bundle in strict-mode / ES-module loads.
Fixed
TypeError: Cannot set property GPU of #<Window> which has only a getterwhen the browser bundle is evaluated in a strict-mode context, e.g. loaded as an ES module (#639). The globalGPUbinding now accepts (and ignores) writes instead of throwing. Regression-tested alongside the WebGPU-collision scenarios from #844/#820.
Installing
npm install gpu.js@2.18.2<script src="https://unpkg.com/gpu.js@2.18.2/dist/gpu-browser.min.js"></script>