Closed floooh closed 4 months ago
The reason wasn't a regression in sokol_gfx.h, but a WebGPU-spec fix in Chrome:
WGPURenderPassColorAttachment.depthSlice
must not be zero, but the magic value WGPU_DEPTH_SLICE_UNDEFINED
unless the color attachment is a 3D texture.
Just noticed after merging the pass-cleanup PR:
https://floooh.github.io/sokol-webgpu/clear-sapp.html
...I definitely tested this a couple of days ago though... maybe a change in Emscripten SDK or Chrome's WebGPU implementation?