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

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

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

相关文章:

  • 2021-07-13
  • 2021-11-17
  • 2022-02-26
  • 2022-12-23
  • 2021-11-23
  • 2021-12-20
  • 2022-12-23
  • 2021-11-26
猜你喜欢
  • 2022-12-23
  • 2022-02-02
  • 2021-06-11
  • 2021-06-27
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案