Project templates
Installing the GXDK adds nine GDK project templates to Visual Studio: five for PC and four for XBOX consoles.Create a project
- Open Visual Studio.
- Go to File > New > Project.
- In All Languages, select C++. In All Platforms, select XBOX or Windows. In All Project Types, select Games. You can also search by template name.
- Select a template and select OK.
Select a template
PC only
Start with Direct3D 12 Desktop Game.- Uses
WINAPI_FAMILY_DESKTOP_APPand links against the full set of PC libraries, includingkernel32.libanduser32.lib. - Includes headers and libraries for D3D12. Provides a simple swap chain, D3D device, and update or render loop.
- Includes
XGameRuntime.hand linksXGameRuntime.lib. All GDK Gaming Runtime capabilities are ready. - XSAPI extension library available by default.
- Builds against the stock x64 platform or the custom
Gaming.Desktop.x64platform. - Creates a
MicrosoftGameConfig.mgcfile with placeholders for your Partner Center identity.
XBOX only
Start with Direct3D 12 XBOX Game.- Uses
WINAPI_FAMILY_GAMESand links againstXGamePlatform.lib. - Includes D3D12 headers ready for XBOX D3D12.x extensions.
- Includes
XGameRuntime.hand linksXGameRuntime.lib. - XSAPI extension library available by default.
- Uses the
Gaming.XBOX.XboxOne.x64MSBuild platform with remote-debug expectations. - Creates a
MicrosoftGameConfig.mgcfile with placeholders.
PC and XBOX (shared codebase)
Start with one template, for example Direct3D 12 Desktop Game, and add a second build configuration targetingGaming.XBOX.XboxOne.x64 (or vice versa).
Tailor source code with #define or #ifdef guards, or partition platform-specific code into separate DLLs:
- The PC configuration uses stock D3D12.
- The XBOX configuration uses D3D12.x.
Ship end-to-end on a dev kit
Before you select a deeper path, work through the hands-on console walkthrough. It takes the Direct3D 12 XBOX Game template you created through a running loose deployment on an XBOX dev kit. From there, it produces an installable XVC.Build and run your first console title with GDKX
14-step tutorial: pin the GDK edition, add DirectXTK12, build for XBOX Series X|S consoles, deploy to a dev kit, diagnose launch failures, and produce an installable XVC.
Next steps
You have a project building. Select the curated path that matches what you’re shipping. The guide points you to the deeper docs (Build, Services, Optimize, Publishing, and API References) you need next.Porting
Port a shipped title from another platform.
XBOX Play Anywhere
One purchase, PC and console. Shared saves.
XBOX Series X|S consoles
Console-first: Quick Resume, DirectStorage, and Smart Delivery.
Windows and ROG XBOX Ally
Ship on Windows PC and handhelds.
Unreal Engine
GDK plugins and platform extensions for Unreal.
Unity
Unity integration for PC and XBOX.
Godot and community engines
Godot, GameMaker, and custom-engine notes.
See also
- Porting guides: Technical index of porting topics (ERA to GDK, shaders, GameInput, and Steamworks mapping).
- MicrosoftGame.config overview.
- Packaging your game.
