瀏覽代碼

Merge pull request #6688 from sebavan/master

Fix WebGPU
sebavan 6 年之前
父節點
當前提交
13d9e132f7
共有 2 個文件被更改,包括 17593 次插入17581 次删除
  1. 17592 17580
      Playground/js/babylonWebGpu.max.js
  2. 1 1
      Playground/js/indexWebGPU.js

文件差異過大導致無法顯示
+ 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);