Say I have an .fx file with two techniques, TechniqueA and TechniqueB,

TechniqueA uses these constants passed by the engine:
const float4x4 matWorld;
const float4 vecSunDir;
const float4 vecSkill1;
const float4 vecSkill5;

TechniqueB only uses these constants:
const float4 vecSunDir;
const float4 vecSkill1;

If the hardware doesn't support TechniqueA, will the engine still bother setting/passing those unnused constants (and thus slow down the rendering process)?