How to get warnings when compiling fx files
- by jdv-Jan de Vaan
When I compile DirectX shaders (.fx files), I dont see any compiler warnings unless there was an error in the effect.
This happens both when using the offline FXC compiler, as well as calling SlimDx's CompileEffect (which is what we normally do).
I could force warnings as errors (/WX), but if you enable that, you get an error that compilation failed, without the warning that caused the problem.
So how can I output warnings for shaders that compile properly?