I’m compiling my HLSL files using HLSL shader compiler 10.1 with the following arguments:
> fxc.exe "MyShader.hlsl" /T ps_5_0 /E PS /Od /Zi /Gfp /Fo "MyShader.cso"
And if I open the .cso file I can see embedded the actual HLSL source code with (what I believe is) debug information normaly not present without /Od /Zi /Gfp.
However, while debugging a frame with Nsight Graphics (2019.2.1.0) in my GTX 1050 Ti PC, Debug Info appears as “None”, and while clicking the shader only the assambly code is shown (although HLSL code is in the .cso file) with a message on top of the tab: “Shader editing is not supported by this shader”, and not able to put breakpoints or debug at all.
Any ideas what could I be missing to be able to debug the shader?
Thanks in advance!