Skip to content

2.18.2

Choose a tag to compare

@fuzzie360 fuzzie360 released this 22 Jul 12:38

Bug-fix release: browser bundle in strict-mode / ES-module loads.

Fixed

  • TypeError: Cannot set property GPU of #<Window> which has only a getter when the browser bundle is evaluated in a strict-mode context, e.g. loaded as an ES module (#639). The global GPU binding 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>