摘要: The behavior of shader constants has changed between Direct3D 8 and Direct3D 9. For Direct3D 9, constants set with defx assign values to the shader constant space. The lifetime of a constant declared with defx is confined to the execution of that shader only. Conversely, constants set using the APIs SetXXXShaderConstantX initialize constants in global space. Constants in global space are not copied to local space (visible to the shader) until SetxxxShaderConstants is called. For Direct3D 8, 阅读全文
posted @ 2011-01-28 11:26 麒麟子MrKylin 阅读(352) 评论(0) 推荐(0) 编辑