Updated Using DeviceResources (markdown)

Chuck Walbourn 2020-02-01 23:05:24 -08:00
Родитель 318450cfcb
Коммит 980f760d33
1 изменённых файлов: 3 добавлений и 3 удалений

@ -1,11 +1,11 @@
In [[the basic game loop]] lesson, we made use of the **Direct3D Game** VS template which has all the relevant Direct3D code in the ``Game`` class including creating the device and swap chain. This makes it easy to teach with, and for the reader to see all the code in one place. This, however, does result in a lot of 'boiler-plate' code in the main ``Game`` class which could be distracting.
There is therefore a "DR" variant of each of the Direct3D Game VS template in the [VS 2015/2017/2019](https://github.com/walbourn/directx-vs-templates/raw/master/VSIX/Direct3DUWPGame.vsix) VSIX package which adds [[DeviceResources]].
There is therefore a "DR" variant of each of the Direct3D Game VS template in the [VS 2017/2019](https://github.com/walbourn/directx-vs-templates/raw/master/VSIX/Direct3DUWPGame.vsix) VSIX package which adds [[DeviceResources]].
> The standard Universal Windows Platform app ``DirectXApp`` VS templates make use of a similar ``DeviceResources`` abstraction.
# Creating a new project
## Visual Studio 2015 / 2017
## Visual Studio 2017
* From the drop-down menu, select **File** and then **New** -> **Project...**
* Select "Visual C++" on the left-hand tree-view.
* Select "Direct3D Win32 Game DR" or "Direct3D UWP Game DR".
@ -73,7 +73,7 @@ Visual Studio will default to the _x64_ platform / _Debug_ configuration which b
Press F5 to build and run the application It displays the following window:
![Running Project ](https://github.com/Microsoft/DirectXTK/wiki/images/RunningProject.png)
![Running Project](https://github.com/Microsoft/DirectXTK/wiki/images/RunningProject.png)
> _Troubleshooting:_ If the base template fails to start, there are a few possibilities. First, if your system
> doesn't have any Direct3D capable device of any feature level, it will fail. This is pretty unlikely on modern