playcanvas / engine

Powerful web graphics runtime built on WebGL, WebGPU, WebXR and glTF
https://playcanvas.com
MIT License
9.73k stars 1.36k forks source link

WebGPU only examples fail to ignore WebGL (engine v1) #7087

Closed mvaligursky closed 3 weeks ago

mvaligursky commented 3 weeks ago

run local examples in WebGL mode and then switch to Histogram example, which is WebGPU only. The comment in the example needs to instruct it to avoid running it in WebGL mode:

// @config WEBGL_DISABLED

but at the moment WebglGraphicsDevice is created, and then the example fails: Screenshot 2024-11-04 at 15 37 24