I am reading a book from Frank Luna 3D Game Programming with DirectX 11.
I was using D3DX11CompileFromFileW() function to compile shaders with flag (D3D10_SHADER_DEBUG | D3D10_SHADER_SKIP_OPTIMIZATION) and it was working ,but in new projects and some more advanced programs although the project is compiled without errors it does not display objects.
After a lot working on it I realized if I use flag (D3D10_SHADER_DEBUG) or just (D3D10_SHADER_SKIP_OPTIMIZATION) it works properly but does not work when I OR them together (i.e D3D10_SHADER_DEBUG | D3D10_SHADER_SKIP_OPTIMIZATION )
I also tried fxc compiler and I ran into the same problem. Is there any solution to use the flags together or maybe I can use only one of them (I have use them together in many projects but not recently. The book also use them together).