Can we use autoClear and autoClearDepthAndStencil in webgpu? Its just a white screen for me with no errors in console. This is way different from webgl2’s. You can toggle the false to true to see the diffs.
Sorry for the 2 in 1 but I’m guessing its related…
It looks like depth textures are not initialized with 0 by default in WebGL but 1, whereas they are in WebGPU. So, when autoClear and autoClearDepthAndStencil are both false, depth texture is not cleared by Babylon and retain their default values. Because it’s 0 in WebGPU, nothing is rendered.
A simple workaround is to manually clear the texture at startup: