How to get warnings when compiling fx files
Posted
by
jdv-Jan de Vaan
on Game Development
See other posts from Game Development
or by jdv-Jan de Vaan
Published on 2012-07-03T10:38:02Z
Indexed on
2012/07/03
15:25 UTC
Read the original article
Hit count: 303
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?
© Game Development or respective owner