在构建DirectXTK时,VS2019报告:
Cannot open include file: 'DebugEffect_VSDebugInst.inc': No such file or directory
Cannot open include file: 'NormalMapEffect_VSNormalPixelLightingTxInst.inc': No such file or directory
Cannot open include file: 'PBREffect_VSConstantInst.inc': No such file or directory
我从https://github.com/microsoft/DirectXTK拉源代码,打开DirectXTK_Desktop_2019_Win10。生成SLN时,出现此错误
这将表明着色器的部分构建,这意味着一些着色器blob .inc文件是成功的,但不是所有的都被构建。这可能是路径深度问题,具体取决于在克隆库的位置。
尝试打开x64 Native Tools命令提示符,然后切换到DirectXTKSrcShaders
目录。执行CompileShaders.cmd
命令。查找错误
检查DirectXTKSrcShadersCompiled
的内容。