Skip to content
Direct3D Visual Studio Templates
Branch: master
Clone or download
Latest commit 64a28e0 Feb 22, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
VSIX February 22, 2019 Feb 23, 2019
d3d11game_uwp UWP vcxproj code review feedback Nov 19, 2018
d3d11game_uwp_cppwinrt UWP vcxproj code review feedback Nov 19, 2018
d3d11game_uwp_cppwinrt_dr Suppress debug noise Nov 26, 2018
d3d11game_win32 UTF-8 Everywhere best practices Feb 23, 2019
d3d11game_win32_dr UTF-8 Everywhere best practices Feb 23, 2019
d3d12game_uwp Minor comment fix Nov 27, 2018
d3d12game_uwp_cppwinrt_dr Minor comment fix Nov 27, 2018
.gitattributes updated attributes Sep 27, 2016
.gitignore VSIX project source Mar 14, 2017
LICENSE Updated copyright year Jan 1, 2019 May 8, 2018 May 8, 2018

Direct3D Game VS project templates

This repo contains simplified Visual C++ project templates. They are primarily intended for developer education, samples, and tutorials.

See this blog post and this one.

Documentation is available on GitHub.

There are two versions of each template. The DR version adds a DeviceResources (DX11 or DX12) abstraction to isolate the device and swapchain code into it's own helper class.

For the UWP templates, there are C++/WinRT variants that use C++ Windows Runtime language projections rather than the C++/CX language extenions (/ZW).

VS 2015

VSIX\Direct3DUWPGame.vsix installs the Direct3D UWP Game templates and the Direct3D Win32 Game templates for VS 2015

The package requires the Visual C++ and Windows Tools optional features are installed, and requires Windows 10 Anniversary Update SDK (14393) or later.

For C++/WinRT projects, use cppwinrt NuGet package 2017.2.28 with the Windows 10 Anniversary Update SDK (14393).

VS 2017

The VSIX\Direct3DUWPGame.vsix also works for VS 2017. Use of the Visual Studio 2017 15.7 update or later is recommended.

The package requires the Universal Windows Platform development workload (Microsoft.VisualStudio.Workload.Universal) with the C++ Universal Windows Platform tools (Microsoft.VisualStudio.ComponentGroup.UWP.VC). The Win32 templates require the Desktop development with C++ workload (Microsoft.VisualStudio.Workload.NativeDesktop). It is recommended you make use of the Windows 10 April 2018 Update SDK (17134).

Rebuilding the VSIX

Building the VSIX project requires VS 2017 with the Visual Studio extension development (Microsoft.VisualStudio.Workload.VisualStudioExtension) and .NET desktop development (Microsoft.VisualStudio.Workload.ManagedDesktop) workloads.


All content and source code for this package are subject to the terms of the MIT License.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact with any additional questions or comments.

You can’t perform that action at this time.