【问题标题】:Cannot open include file: '*Inst.inc' when build DirectXTK构建 DirectXTK 时无法打开包含文件:\'*Inst.inc\'
【发布时间】:2022-11-16 13:04:38
【问题描述】:

构建 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编译,报错。

【问题讨论】:

    标签: directxtk


    【解决方案1】:

    这将指示着色器的部分构建,这意味着一些着色器 blob .inc 文件是成功的,但不是所有的都被构建。这可能是一个路径深度问题,具体取决于在哪里你克隆了图书馆。

    尝试打开一个x64 本机工具命令提示符,然后切换到 DirectXTKSrcShaders 目录。然后运行CompileShaders.cmd。查找任何错误。

    然后查看DirectXTKSrcShadersCompiled的内容。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-10
      • 2016-06-17
      • 2019-10-28
      • 1970-01-01
      相关资源
      最近更新 更多