CryEngine5 的调试与上一篇CryEngine3基本一致,所以实际测试发现还是有些不一样,需要注意的是:
1. Shader Cache 目录默认为: C:\Users\Administrator\Saved Games\gamezero\shaders\cache\d3d11
2. 配置本地编译服务器总是提示Shader 编译失败,关闭编译服务器,则可以正常编译(没搞明白)
3. r_shadersdebug = 4 【ref】
Enable special logging when shaders become compiled
Usage: r_ShadersDebug [0/1/2/3/4]
1 = assembly into directory Main/{Game}/shaders/cache/d3d9
2 = compiler input into directory Main/{Game}/testcg
3 = compiler input with debug information (useful for PIX etc./{Game}/testcg_1pass
4 = compiler input with debug information, but optimized shaders
Default is 0 (off)
4. 第一次配置,无法进行shader调试,之后就正常了。