Tag Info

Hot answers tagged

2

The problem is likely VS is trying to compile your Include.hlsl file which doesn't actually contain any functions. Use Include.hlsli instead.


2

Make sure you right click -> properties on each shader file and set the Shader Type as well. The property right above the shader model in your graphic.


2

The .fxo files are compiled shader files. Think of .obj/.o files for C and C++, but for HLSL. They're the result of running the shader compiler fxc.exe over your shader files. The advantages of .fxo files are three fold. First, the make reverse engineering of your shader code a bit more difficult, which is advantageous for some of the higher-end games with ...


2

It isn't entirely clear what you are asking. Setting shader parameters IS a bottleneck - that's why engines batch by material - textures, parameters, lights, etc. While CPUs and GPUs are efficient, in order to get the most out of rendering performance you have to think about these things.



Only top voted, non community-wiki answers of a minimum length are eligible