Blog under Tag DirectX DirectX is mainly used for recording the learning process, the main reference "DirectX 12 3D games combat development."
Official Example Project
After www.d3dcoder.net download d3d12 project will be able to build their own project based on the official project. This selection of the IDE is VS2019, the new project select C ++ Empty Project , and then Common file official sample project folder to your project directory, in order to test run results, while the official project Chapter VI relating to box in BoxApp.cpp
and Shaders
folders also copied to the project directory, add the above in the header file .h
file, add the source file in the above .cpp
file. At this point just start debugging will find the following error:
As can be seen, given the content is relevant and strings, it is because the wrong character set in 项目属性
- 配置属性
- 高级
under the character set to Unicode debugging again, the error disappeared. But time and the emergence of new errors:
error LNK2019: 无法解析的外部符号 _main
, _main
Is an identifier references at link time windowing subsystem, and the default link upload our project is to build an empty console, so it is necessary 项目属性
- 配置属性
- 链接器
- 系统
under the subsystem to modify 窗口(/SUBSYSTEM:WINDOWS)
before you start debugging, you can run box project.