   understanding fx files
  Just curious on why .fx content has to be put in a seperate file. The code looks exactly like C. why not just make a fx class. If someone could explain that with the least of amount of jargon, that would be great. thanks!   
  While HLSL does look like C, it is not the same language. Therefore, it has a different compiler than C. Also, the shader code is linked to the host application manually (Create*Shader, Set*Shader), unlike C modules which are typically linked statically or from within a DLL.Note that it is perfectly possible to embed effect or shader code to a C module as text, and then compile it at runtime by using the D3D compiler functions.[Edited by - Nik02 on April 24, 2010 8:13:02 AM]