Shader consttable 变量共享

Posted on 2008-10-25 14:52  活着就是幸福  阅读(200)  评论(0编辑  收藏  举报
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).