DirectX API Documentation

Welcome to the DirectX API Reference

Select an API from the left navigation pane to explore classes, interfaces, enums and sample code.

Direct3D

ID3D11Device

Creates resources, device contexts, and other objects essential for rendering.

ID3D11DeviceContext

Encapsulates rendering commands for a Direct3D device.

D3D11_TEXTURE2D_DESC

Structure that describes a 2‑D texture.

Direct2D

ID2D1Factory

Creates Direct2D resources such as render targets and geometries.

ID2D1RenderTarget

Represents a rendering destination for Direct2D drawing.

ID2D1SolidColorBrush

Brush that paints a solid color.

DirectWrite

IDWriteFactory

Creates DirectWrite objects such as font collections and text formats.

IDWriteTextFormat

Defines text properties like font, size, alignment.

IDWriteTextLayout

Provides layout and rendering of formatted text.

XAudio2

IXAudio2

Main XAudio2 engine interface.

IXAudio2SourceVoice

Handles playback of audio buffers.

IXAudio2MasteringVoice

Represents the final output device.

XAPICore

IXAudio2EngineCallback

Receives runtime notifications from XAudio2.

XAUDIO2_BUFFER

Defines an audio buffer submitted to a source voice.

DXGI

IDXGIFactory

Creates DXGI objects such as adapters and swap chains.

IDXGISwapChain

Manages buffers for presenting rendered frames.

DXGI_MODE_DESC

Describes display mode characteristics.

DirectComposition

IDCompositionDevice

Creates visual objects for composition.

IDCompositionVisual

Represents a visual element in the composition tree.

IDCompositionTarget

Associates a visual tree with a window.