GPUOpen-LibrariesAndSDKs / FidelityFX-SDK

The main repository for the FidelityFX SDK.
Other
834 stars 78 forks source link

Can I debug the shader use renderdoc or other tools? #13

Open WanLittle opened 10 months ago

WanLittle commented 10 months ago

My environment is Windows + DX12

I try renderdoc, but, image

I try pix, but, "Failed to load the PBD file" of the core SDK shader, but other shader is ok.

I am not familiar with shader compiler, has anyone else encountered this situation?

jlacroixAMD commented 10 months ago

Hello,

I'm assuming you are using the native DX12 SDK backend to link with. In this case, could you try modifying sdk/src/backends/dx12/CMakeLists.txt to force debug pdb generation.

If you look at the function definition for compile_shaders, go through each add_custom_command definition, and after all instances of "-T cs_6_2" or "-T cs_6_6", add the following:

"-Zi -Zs -Zss"

And see if that works for you. You may also which to specify -Fd and provide a custom path where to dump the shader pdbs.

I believe the next version of the SDK will have more explicitly exposed flags for the compiler to generate debug information. Apologies for the difficulties you are experiencing.