wgpu-native icon indicating copy to clipboard operation
wgpu-native copied to clipboard

unable to get debug flags with Dxc

Open Vipitis opened this issue 6 months ago • 0 comments

so with v25 we can specify Dxc via the Instance extras and debug mode via flags. I managed to get debug flag working for Fxc and Vulkan. But Dxc gives me the very same compiler flags no matter if the flag is set or not. I tried newer Dxc version too but same behaviour. Checked via RenderDoc and Intel GPA (the later might have issues with Dxc anyway). Here is the changes to the triangle example I used, also tried this via the python mappings (which is where I want to end up using it): https://github.com/gfx-rs/wgpu-native/commit/2d4e99e1a03cbbb9e384c9dcad7d5331abec1c6f

I traced this up to wgpu-core here: https://github.com/gfx-rs/wgpu/blob/wgpu-v25.0.2/wgpu-hal/src/dx12/shader_compilation.rs#L293-L301 but looks alright to me. Please let me know if this is an upstream issue.

So my question really is: anyone got this working via wgpu-native?

Vipitis avatar Jun 03 '25 22:06 Vipitis