简体   繁体   English

弗兰克·卢纳 (Frank Luna) 在其著作《使用 DirectX12 进行 3D 游戏编程》的介绍中的方框示例问题

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

I am beginning to study Frank Luna's book '3D game programming with DirectX12'.我开始学习 Frank Luna 的书“使用 DirectX12 进行 3D 游戏编程”。 To follow precisely his steps I have downloaded Visual Studio 2015 ( BUT I CAN INSTALL ANY VERSION YOU MAY SUGGEST ), even if now we are in 2020. When attempting to execute the instructions that he gives from page xxx to page xxxiii of the Introduction, I get two types of errors.为了准确地按照他的步骤,我已经下载了 Visual Studio 2015(但我可以安装您可能建议的任何版本),即使现在我们是在 2020 年。当尝试执行他从介绍的第 xxx 页到第 xxxiii 页给出的指令时,我得到两种类型的错误。 The first is this list:首先是这个列表:

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

The second problem is that in my Windows 10 computer and VisualStudio 2015 the target platform version he writes should be 10.x, is 8.1 instead.第二个问题是,在我的 Windows 10 计算机和 VisualStudio 2015 中,他编写的目标平台版本应该是 10.x,而是 8.1。

And would it be possible to follow the book in Visual Studio 2019 ?是否可以在 Visual Studio 2019 中学习本书? Anyone does ?有人吗?

I apologize for the disturb but I am really at the beginning ..... and I am stuck right there at the introduction :-(我为打扰深表歉意,但我真的处于开始阶段......而且我在介绍时被困在那里:-(

Visual Studio 2015's default SDK is the Windows SDK 8.1, which does not have any DirectX 12 headers. Visual Studio 2015 的默认 SDK 是 Windows SDK 8.1,它没有任何 DirectX 12 标头。

You need to install the optional "Windows Tools" component to get it.您需要安装可选的“Windows 工具”组件来获取它。

See this blog post这篇博文

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM