GraphicsProgramming / GraphicsProgramming/learnd3d11

When manually creating the project and adding shader files FXC acts up

未關閉
#121 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
C++
星號
199
分支
29
PR 合併指標
30 天內沒有已合併 PR

描述

Looks like when you add hlsl files manually to a project via Add New File it creates `` elements in the project file, which can cause a problem, as in vs tries to compile the files itself using `fxc.exe`.

```
1>an error occurred while setting the initial search directory.
1>searches will be relative to the application's starting directory.
1>compilation failed; no code produced
```

We should adjust the wording in the early chapters somewhere, that this can happen and a workaround is to manually remove `` elements from the project file.

貢獻指南

開啟貢獻指南

研究方向

Review the early tutorial chapters for the project-creation steps involving manually added HLSL files. Confirm where Visual Studio can add elements and document the reported FXC failure plus the stated workaround of removing those elements from the project file. Done means the warning and workaround appear in the relevant early chapter.

由索引模型根據 Issue 內容生成。

評估

領域
documentation
Issue 類型
文件
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。