[bug] WebGPU: Begin/EndDebugGroup broken
Problem
Bug only happens in WebGPU backend, D3D11/12/Vulkan works.
WebGPU validation error:
Diligent Engine: ERROR: WebGPU: Command cannot be recorded while [CommandEncoder (unlabeled)] is locked and [ComputePassEncoder (unlabeled)] is currently open.
- While encoding [CommandEncoder (unlabeled)].PopDebugGroup().
Environment
Diligent Engine: newest master branch OS: Win11 24H2 Hardware: Ryzen AI9 370HX, RTX 4060 Laptop.
Sample to re-produce:
Simplified sample: a DispatchCompute, follows by two Draw.
Personal reason suspect:
Outer command pass debug group commands, submitted with compute pass encoder open.
In WebGPU, you can have a debug group that either spans draw commands or compute commands. Debug groups that cover both draw and compute don't work.
The sample is three Debug group, one cover just Compute, two cover just Draw. No mixed debug spans.