无法打开包含文件:"*Inst.inc",当生成 DirectXTK 时



在构建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的内容。

最新更新