I'm looking for an easy way of detecting errors in HLSL file at program compile time from visual studio. I want to add a custom build to my shader files that compiles them and make sure the build fail if I did something stupid like referring an undefined variable or other things that otherwise would be detected when compiling the shader in the application.
Have anyone successfully setup this before?
"%25DXSDK_DIR%25\Utilities\bin\x86\fxc.exe"
, but it worked. – wip