Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] WebGPU: Begin/EndDebugGroup broken #627

Open
WangHoi opened this issue Oct 4, 2024 · 3 comments
Open

[bug] WebGPU: Begin/EndDebugGroup broken #627

WangHoi opened this issue Oct 4, 2024 · 3 comments

Comments

@WangHoi
Copy link
Contributor

WangHoi commented Oct 4, 2024

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:

wgpu_dbgrp.zip

Simplified sample: a DispatchCompute, follows by two Draw.

@WangHoi
Copy link
Contributor Author

WangHoi commented Oct 4, 2024

Personal reason suspect:

Outer command pass debug group commands, submitted with compute pass encoder open.

@TheMostDiligent
Copy link
Contributor

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.

@WangHoi
Copy link
Contributor Author

WangHoi commented Oct 5, 2024

The sample is three Debug group, one cover just Compute, two cover just Draw.
No mixed debug spans.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants