Skip to content

fix: Update GPU instantiation to use GPU.GPU() in example files - #843

Closed
diego-betto wants to merge 1 commit into
gpujs:developfrom
diego-betto:fix/html-examples-constructor
Closed

diego-betto wants to merge 1 commit into
gpujs:developfrom
diego-betto:fix/html-examples-constructor

Conversation

@diego-betto

Copy link
Copy Markdown

Fixes "Uncaught TypeError: GPU is not a constructor" error in HTML examples.

@fuzzie360

Copy link
Copy Markdown
Member

Closing as superseded: the root cause (GPU is not a constructor in WebGPU-capable browsers, #844) was fixed in the browser bundle itself in 2.17.1, so new GPU() in the examples is now the correct working form — switching them to the new GPU.GPU() workaround would point users at the old workaround instead. Thanks for the report that helped pin this down.

@fuzzie360 fuzzie360 closed this Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants