Reputation: 5002
I'm trying to debug my shaders in Directx 11 SDK application using graphics diagnostics tool in VS2012, however when I click Start Debugging on one of the shaders in Graphics Pixel History panel I'm getting Pixel Shader.pdb not loaded and I'm not able to find the pdb file anywhere.
I tried compiling shaders at runtime using D3DX11CompileFromFile
with D3DCOMPILE_DEBUG
flag as well as using the HLSL compiler with debugging information turned on (/Od /Zi) but none of these options is producing the pdb file I could use in graphics diagnostics tool.
How do I generate these files?
Upvotes: 1
Views: 2593
Reputation: 13003
I think this "Pixel Shader.pdb not loaded"
message is misleading. The is no any .pdb
files generated by HLSL-compiler. All debug info are integrated into binary (either memory blob or .cso
file).
Does your shader file named "Pixel Shader"
? Maybe it says not about a shader, but some kind of Visual Studio's internal source files (shader debugger in VS2012 was somewhat unstable sometimes)
Some ideas that, probably, can help you to solve issue:
D3DX11CompileFromFile
).fxc.exe
directly.Hope it helps somehow.
Upvotes: 2