在构建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进行构建,并得到了这个错误。
发布于 2022-11-16 04:49:21
这将表明部分构建的着色器,这意味着一些着色器blob .inc文件是成功的,但不是所有的构建。这可能是一个路径深度问题,取决于您克隆库的位置。
尝试打开一个x64本机工具命令提示符,然后切换到DirectXTK\Src\Shaders目录。然后运行CompileShaders.cmd。找出任何错误。
然后检查DirectXTK\Src\Shaders\Compiled的内容。
https://stackoverflow.com/questions/74357847
复制相似问题