MSDN Docs

Welcome to the DirectX Programming Guide

DirectX is a collection of APIs that enable high‑performance multimedia and gaming applications on Windows platforms. This guide provides a comprehensive overview of the core DirectX technologies, best practices, and sample code to help you get up and running quickly.

What you'll learn

Getting Started

Begin with the Getting Started tutorial to create your first DirectX window and render a simple triangle.

Sample Code

#include <d3d12.h>
#include <dxgi1_6.h>
#include <D3Dcompiler.h>

int main()
{
    // Initialize COM and create DXGI factory
    CreateDXGIFactory1(IID_PPV_ARGS(&factory));
    // ... rest of the initialization code
    return 0;
}

For a complete walkthrough, see the Direct3D and Direct2D sections.

Resources