XNA Creators Club Online
Page 1 of 1 (1 items)
Sort Posts: Previous Next

PIX Shader Debugging

Last post 9/7/2009 4:56 PM by tomtech999. 0 replies.
  • 9/7/2009 4:56 PM

    PIX Shader Debugging

    Hi there!

    I am new to this community and from looking around it seems a great place to be! I had a quick look around for a better place to post about PIX but couldn't seem to see anywhere specific for PIX issues so I will post in here.

    Basically, I have followed the tutorial here http://msdn.microsoft.com/en-us/library/bb173118(VS.85).aspx which describes how to debug a vertex or pixel shader (written in HLSL). I have followed the setup steps mentioned and included the following definitions.

    #define D3D10_SHADER_DEBUG
    #define D3D10_SHADER_SKIP_OPTIMIZATION

    When I do a single frame capture in PIX and debug an individual pixel, I can indeed step through the HLSL assembly, but it seems the debug/symbol information has been excluded as I can ONLY step through in the assembly and not through the HLSL source code I wrote myself, as shown here http://i.msdn.microsoft.com/Bb173118.dxsdk_pix_ps_tutorial_Source_Debug(en-us,VS.85).png.

    Is there an important step I am missing here which is preventing me from viewing the HLSL source code within PIX? For now I can step through the assembly and map the registers to my variables but as you can imagine, this is not the ideal.

    Thanks in advance to anyone who can shed any light on this.

    Tom
    Tom
Page 1 of 1 (1 items) Previous Next