Explorar el Código

Merge pull request #6688 from sebavan/master

Fix WebGPU
sebavan hace 6 años
padre
commit
13d9e132f7
Se han modificado 2 ficheros con 17593 adiciones y 17581 borrados
  1. 17592 17580
      Playground/js/babylonWebGpu.max.js
  2. 1 1
      Playground/js/indexWebGPU.js

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 17592 - 17580
Playground/js/babylonWebGpu.max.js


+ 1 - 1
Playground/js/indexWebGPU.js

@@ -575,7 +575,7 @@ function showError(errorMessage, errorEvent) {
                         await engine.initAsync(window.shadercOptions);
 
                         //create scene
-                        eval("scene = " + createSceneFunction + "()");
+                        eval("scene = " + createSceneFunction + "(engine, canvas)");
 
                         if (!scene) {
                             showError(createSceneFunction + " function must return a scene.", null);