Hi,
I’m trying to render a scene using WebGPU and have bumped into an issue that I’m unsure if it’s a bug or just me misconfiguring the setup. What I have is a WebGPU engine, a SSAO2 rendering pipeline and a PBR material with the needDepthPrePass property sat to true. This combo causes the scene not to render and this output in the console:
installHook.js:1 BJS - [16:18:09]: WebGPU uncaptured error (1): [object GPUValidationError] - Error while parsing WGSL: :976:1 error: struct member color not found
fragmentOutputs.color= vec4f(0.,0.,0.,1.0);
^^^^^^^^^^^^^^^^^^^^^
- While calling [Device "BabylonWebGPUDevice0"].CreateShaderModule([ShaderModuleDescriptor ""fragment""]).
Is this a bug or is it me misconfiguring the scene?
Here’s a playground with a reproduction: https://playground.babylonjs.com/#302J6D#2 It works fine when using WebGL but the error appears when using WebGPU.