Browse Source

Fix WebGPU

sebavan 6 years ago
parent
commit
6ceb1e8f07
2 changed files with 17593 additions and 17581 deletions
  1. 17592 17580
      Playground/js/babylonWebGpu.max.js
  2. 1 1
      Playground/js/indexWebGPU.js

File diff suppressed because it is too large
+ 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);