Skip to content
Bob Brown edited this page Aug 11, 2016 · 2 revisions

Welcome to the DirectX-Graphics-Samples wiki!

Feel free to add your own content as you see fit. I'll be starting this Wiki by listing some common issues that you may run into while trying to get the code up and running:

1. On a fresh clone of the repository, you try to build one of the projects and get the following error: fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

Solution: Right-click on the project and go to "Properties." Double check that the Target Platform Version corresponds to an SDK that you have installed. Visual Studio will sometimes default to the Windows 8.1 SDK which is definitely not what you want. Expand the dropdown box and select the SDK that is installed on your machine.

If you do not have the Windows 10 SDK installed, you can download it here: https://go.microsoft.com/fwlink/p/?LinkID=822845 (accurate as of 8/11/2016)

2. You build and run one of the projects and it immediately breaks in at the ThrowIfFailed function with hr equal to 0x887A0004 (DXGI_ERROR_UNSUPPORTED)

Solution: Go up one frame in the callstack and see if D3D12CreateDevice is the function that is failing. If so, this means that your GPU does not support DirectX 12. Most of the samples support running with the WARP software rasterizer by passing in /warp on the command line. Open the project Properties and add this switch to Debugging -> Command Arguments.