您的位置:首页 > 其它

Mark!!! enable compatibility mode to allow modification.

2012-10-30 13:57 726 查看


enable compatibility mode to allow modification.

编译vertex shader出现:\error X3025:global variables are implicitly constant,enable compatibility mode to allow modification.

这是因为当前编译的shader基于一个较老的shader版本,必须指定兼容模式D3DXSHADER_ENABLE_BACKWARDS_COMPATIBILITY才能 编译通过

也就是在调用D3DXCompileShaderFromFile编译shader时,第6个参数必须包含此值。

Mark!!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐