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

push_debug_group requires cfg!(debug_assertions) under Vulkan #3954

Closed
Aaron1011 opened this issue Jul 21, 2023 · 2 comments
Closed

push_debug_group requires cfg!(debug_assertions) under Vulkan #3954

Aaron1011 opened this issue Jul 21, 2023 · 2 comments

Comments

@Aaron1011
Copy link
Contributor

Description

The RenderPass::push_debug_group method is very useful for debugging a complex application. However, wgpu-core only enables the required InstanceFlags::DEBUG when cfg!(debug_assertions) is enabled:

https://github.com/gfx-rs/wgpu/blob/4ab9dbea8f7efbad518c3e39db07c30177a1a6af/wgpu-core/src/instance.rs#L77C20-L80

I couldn't find this documented anywhere. Ideally, this could be explicitly enabled when calling wgpu::Instance::new, without the need to turn on debug assertions for the entire program.

Repro steps
Run any of the examples that use encoder.push_debug_group (e.g. examples/cube) with and without debug assertions (for example, in both debug and release mode) under a program like RenderDoc.

Expected vs observed behavior
Debug groups are not shown in Renderdoc unless debug assertions are enabled.

Extra materials

Platform
wgpu 0.16.2
Linux
Vulkan

@cwfitzgerald
Copy link
Member

Yes, this is something we need to disinstangle. Specifically we want to raise all of the instance flags up to the wgpu user as it's their decision, not ours.

@teoxoy
Copy link
Member

teoxoy commented Jul 3, 2024

This was resolved by #4230.

@teoxoy teoxoy closed this as completed Jul 3, 2024
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

3 participants