PIX Shader debugging - no HLSL in debug view
So I followed the SDK docs for how to get PIX to do shader debugging.
All I see is the shader Disassembly - no .fx file is visible even thugh this originally came from a .fx file.
The docs say "If a shader contains debug information, there will be one or more additional source tabs.". What do I have to do to make sure a shader 'contains debug information'.
[383 byte] By [
TheZMan] at [2007-12-25]
- Use SWVP
- Add D3DXSHADER_FORCE_VS_SOFTWARE_NOOPT
At least that's what BasicHLSL does, and I can step through the HLSL source of the vertex shader in PIX. Great feature!!! Now if only they use a better cursor in the Render window (the hand is very imprecise for debugging pixels)...
For more precision, you can zoom your image view in the details window to see the selection better.
Regarding the finding on the HLSL, the effect needs to be compiled with debug info on(D3DXSHADER_DEBUG) and optimizations off(D3DXSHADER_SKIPOPTIMIZATION).
-Dave