error X3025: global variables are implicitly constant, enable compatibility mode to allow modification
全局變量是extern也是常量,在shader里面不能修改,但可以從宿主程序里改。
以前的編譯器沒有強制這一點,現(xiàn)在新的強化了這一要求。
把extern 改成static運行成功
| 只有注冊用戶登錄后才能發(fā)表評論。 | ||
|
||
網(wǎng)站導航:
博客園
IT新聞
BlogJava
博問
Chat2DB
管理
|
||
|
|
posts - 16, comments - 17, trackbacks - 0, articles - 1
Copyright © orlando