Defined in shader source or externally via C++.
4 textures per material, VS and PS only
8 textures per material, VS and PS only
32 textures per material, all shader stages