I am looking for an easy way to detect errors in an HLSL file while compiling a program from visual studio. I want to add a custom assembly to my shader files that compile them, and make sure that the assembly failed if I did something stupid, like a reference to an undefined variable or other things that would otherwise be detected when compiling the shader in the application.
Has anyone successfully configured this before?
source share