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 building DirectX games in Visual Studio by using the built-in DirectX project templates for Universal Windows Platform. Whether you choose to build with DirectX11 or DirectX12, you will find a template that suits you.
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.
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.
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.
Pavan Kumar