Webgpu Engine init

After adjusting flags in Edge Canary, to enable the feature, add the needed code (async function self called ), the engine initiated but showing nothing and in console messages it reported several warnings saying wasm packages called by not included. js files that I didn’t included in html section and in Webgpu documentation doesn’t mention the .js reported by warnings in console. Could you guys review and re issue the Webgpu html instructions on what needs to be included to make it work without using webpack, only a simple web page and js file? This happens even using the preview babylon version.

@Evgeni_Popov is the king of WebGPU

It should work without having to provide the path to the .js/.wasm files of glslang/TintWASM as by default the files are retrieved from the CDN (https://preview.babylonjs.com/glslang/glslang.js and https://preview.babylonjs.com/glslang/glslang.wasm respectively).

You can provide your own paths when calling initAsync: see the glslangOptions and twgslOptions parameters.

Note that those warnings are expected and are not a problem:

1 Like