Each shader will have it's own constant table, since each has to be compiled seperately with a call to D3DXD3DXCompileShaderFromFile. Therefore changes to shader constants for one shader will not affect shader constants in another, each will have it's own set of constants (even if they have the same names in the HLSL).
-----------------------------------------------------------
每天进步一点