   HLSL Debugger?
  I've been trying to right a simple DX program using a very simple colour shader and its not going too well. I think its down to an error in the shader file, but I can't spot it. I was wondering if a HLSL debugger or and code existed for directX 9 that parses the file making sure its correct before its compiled?Thanks   
  You can use the command line compiler -- fxc.exe to see if your shader compiles.  It's part of the SDK.   ;  You can debug shaders in PIX. Theoretically, at least, since PIX isn't very stable and this doesn't always work. But it's a helpful tool and I'd suggest trying it.Regarding the shader being syntactically correct, the compiler will make sure of this. You'll get an error when you try to create it, otherwise.   ;  Thanks guys.Doesn't seem to have shown the errors though :SCheers anyway.   ;Quote:Original post by ET3DYou can debug shaders in PIX. Theoretically, at least, since PIX isn't very stable and this doesn't always work. But it's a helpful tool and I'd suggest trying it.Honestly PIX has been much more stable for me after the last two releases. I think the team was upset I gave them such a hard time when I was in Redmond. :-PQuote:ScottH87Thanks guys.Doesn't seem to have shown the errors though :SCheers anyway.fxc will most certainly show you the errors and give you line numbers.  You can get the same out of the D3DX functions too...it will put the error string into an ID3DXBuffer whose pointer is actually a pointer to a string.   