lets say I have 10 vertex shaders (each one stored in a .vsh file. Pure HLSL, No Effect framework!) and all of them
use some constants that are the same for all shaders for one frame (for example the view matrix, projection matrix, time etc.).
Is there a way to set these shared constants only once for all shaders?
So instead of this:
foreach shader in shaders set view matrix set proj matrix set world matrix set vs/ps renderthis:
set view matrix set proj matrix foreach shader in shaders set world matrix set vs/ps render
Is this possible in DX9 and with pure HLSL shaders?