I tried testing whether I could display a Khronos sample model in Babylon.js.
I attempted to display the model below using Babylon.js v7.50.0 in both WebGL mode and WebGPU mode.
While WebGL mode works fine, it seems that an error occurs with WGSL in WebGPU mode.
WebGL Mode:
https://sandbox.babylonjs.com/?assetUrl=https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Assets/main/Models/AnisotropyBarnLamp/glTF-Binary/AnisotropyBarnLamp.glb
WebGPU Mode:
https://sandbox.babylonjs.com/?assetUrl=https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Assets/main/Models/AnisotropyBarnLamp/glTF-Binary/AnisotropyBarnLamp.glb&webgpu
BJS - [17:04:47]: Babylon.js v7.50.0 - WebGPU1 engine
logger.ts:107 BJS - [17:04:50]: WebGPU uncaptured error (1): [object GPUValidationError] - Error while parsing WGSL: :1270:2 error: unresolved value 'vTBN'
,vTBN
^^^^
- While validating [ShaderModuleDescriptor ""fragment""]
- While calling [Device "BabylonWebGPUDevice0"].CreateShaderModule([ShaderModuleDescriptor ""fragment""]).
OS : Windows 11
Browser : Chrome 133
GPU : GeForce RTX 2060