DirectX11 Shader Compilation Issue
问题 I'm working on a simple DirectX application to display couple of triangles together as Tetrahedron,which Keeps crashing at start.I checked with VS2012 Debugger the error occurs at the stage where Shader is supposed to be compiled from a .fx file,So I assume it's got something to do with the shader.I have no idea what I did wrong.Below is the code of the Shader I'm Using.Assistance required. struct Light { float3 pos; float4 ambient; float4 diffuse; }; cbuffer cbPerFrame { Light light; };