Game development with C++
The game development workload with C++ provides you the tools for making games that run on Windows, Xbox, and beyond. Use powerful game engines like Cocos and Unreal to create cutting-edge graphics. This workload includes the DirectX templates and debugging tools that will help you create great games.
Build high-performance 2D and 3D games in DirectX to run on a variety of devices in the Windows family, including desktops, tablets, and phones. Visual Studio offers a great set of tools for developing DirectX games, from writing shader code and designing assets to debugging and profiling graphics—all in the same familiar Visual Studio IDE.
Get started quickly
Get started building DirectX games in Visual Studio by using the built-in DirectX project templates. Whether you’re building a DirectX 12 or DirectX 11 game for Windows or Windows Phone, you’ll find a template that suits you.
Capture frames local or remote
Rendering problems can be tricky to troubleshoot. Visual Studio Graphics Diagnostics provides an easy way to capture and analyze frames from your DirectX 10, 11, or 12 games locally or remotely. You can inspect each DirectX event, graphics object, pixel history, and look into the graphics pipeline to understand exactly what occurred during the frame. This tool also captures call stacks for each graphics event, making it easy to navigate back to your application code in Visual Studio.
Write and debug shaders
The same world-class debugger now works for your shader code
Whether your shader code is in HLSL files or FX files, the Visual Studio shader editor recognizes them. The shader editor provides syntax highlighting and braces auto-completion, making it easy to read and write shader code in Visual Studio.Debugging shader code from a captured frame is another great way to pinpoint the source of rendering problems. Simply set a breakpoint in your shader code and press F5 to debug it. You can inspect variables and expressions in Locals and Autos. If you’ve used the Visual Studio debugger for other languages before, you’ll find yourself right at home.
Find expensive draw calls
Looking for ways to increase the frame rate for your game? Visual Studio Frame Analysis can come in handy. It analyzes captured frames to look for expensive draw calls and performs experiments on them to explore performance optimization opportunities – all in a nice report.
Analyze GPU usage
Understand how your game is performing on the CPU and the GPU
Use Visual Studio GPU Usage to understand how your game performs on the CPU and the GPU. GPU Usage collects data in real time and it complements Frame Analysis, which is performed on captured frames in an offline fashion. The GPU Usage report will clearly show where the bottleneck is, whether it’s on the CPU or the GPU.