簡體   English   中英

弗蘭克·盧納 (Frank Luna) 在其著作《使用 DirectX12 進行 3D 游戲編程》的介紹中的方框示例問題

[英]Problems with the box example in Frank Luna's introduction to his book '3D game programming with DirectX12'

我開始學習 Frank Luna 的書“使用 DirectX12 進行 3D 游戲編程”。 為了准確地按照他的步驟,我已經下載了 Visual Studio 2015(但我可以安裝您可能建議的任何版本),即使現在我們是在 2020 年。當嘗試執行他從介紹的第 xxx 頁到第 xxxiii 頁給出的指令時,我得到兩種類型的錯誤。 首先是這個列表:

Cannot open include file: '../../Common/d3dApp.h': No such file or directory
1>  d3dUtil.cpp
1>c:\users\maurizio\desktop\intro\d3d12book\common\d3dutil.h(11): fatal error C1083: Cannot open include file: 'dxgi1_4.h': No such file or directory
1>  d3dApp.cpp
1>c:\users\maurizio\desktop\intro\d3d12book\common\d3dutil.h(11): fatal error C1083: Cannot open include file: 'dxgi1_4.h': No such file or directory
1>  DDSTextureLoader.cpp
1>c:\users\maurizio\desktop\intro\d3d12book\common\d3dx12.h(13): fatal error C1083: Cannot open include file: 'd3d12.h': No such file or directory
1>  Camera.cpp
1>c:\users\maurizio\desktop\intro\d3d12book\common\d3dutil.h(11): fatal error C1083: Cannot open include file: 'dxgi1_4.h': No such file or directory

第二個問題是,在我的 Windows 10 計算機和 VisualStudio 2015 中,他編寫的目標平台版本應該是 10.x,而是 8.1。

是否可以在 Visual Studio 2019 中學習本書? 有人嗎?

我為打擾深表歉意,但我真的處於開始階段......而且我在介紹時被困在那里:-(

Visual Studio 2015 的默認 SDK 是 Windows SDK 8.1,它沒有任何 DirectX 12 標頭。

您需要安裝可選的“Windows 工具”組件來獲取它。

這篇博文

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM