What does *.hlsl files do, what the relationship between this file and *.fx file?
问题 I am reading an example of DirectX project, I saw *.fx and *.hlsl files. I know fx is effect file which is read by DirectX, but what's purpose of hlsl file? Are this files useful? 回答1: Historically fx contains shaders using the Effects system syntax ( technique , pass , etc.) while hlsl contains pure HLSL shaders without Effects system syntax. This is, however, purely a convention and one that is not actually followed particularly consistently. In the end, all that matters is what profile you