Original Post
I'm porting a large application over from MDX. I have a shader that compiled and worked nicely with the August 2007 DirectX SDK in Visual Studio C# 2003. My OS is XP, and this is a DX9 app. Now, using the March 2009 release of SlimDX and Visual C# Express 2008 the same shader throws an unhandled exception when I load it. The shader ends with the following code technique RenderScene_2_0 { pass P0 { VertexShader = compile vs_2_0 VertScene(); PixelShader = compile ps_2_0 PixScene(); } } technique RenderScene_3_0 { pass P0 { VertexShader = compile vs_3_0 VertScene(); PixelShader = compile ps_3_0 PixScene(); } } I've experimented and found that if I comment out the entire 3_0 technique it compiles nicely. But when I leave it in the compilationErrors string points to the "c" in "compile" in the VertexShader line of the 3_0 technique. I hate to give up the 3.0 capabilities, but right now I'm stuck with only 2.0. Help!