← New search

Other meanings of DirectX

Software

DirectX

DirectX is a collection of application programming interfaces (APIs) developed by Microsoft for handling tasks related to multimedia, especially game programming and video, on Microsoft Windows and Xbox platforms.1

12 Ultimate
Latest version
Latest version
Microsoft
Developer
Developer
September 1995
Initial release
Initial release
Windows, Xbox, Xbox 360, Xbox One, Xbox Series X/S
Platforms
Platforms
1

Overview and role

DirectX provides a low-level hardware abstraction layer that allows software—especially games—to communicate directly with graphics, sound, and input hardware without needing to know the specific hardware details.2 The core components include Direct3D for 3D graphics rendering, Direct2D for 2D graphics, DirectWrite for text, DirectSound for audio, DirectInput for input devices, and DirectCompute for general-purpose computing on the GPU.1 By standardizing these interfaces, Microsoft enabled developers to write once and have their applications run on any compatible hardware, fostering the growth of the Windows gaming ecosystem.

2

History and development

DirectX originated in 1995 under the codename “Manhattan” as a response to the difficulty of programming for Windows 95's multimedia capabilities.3 The first version, DirectX 1.0, shipped as part of the Windows 95 SDK and included DirectDraw and DirectSound. Subsequent versions added Direct3D (v2.0), DirectInput (v3.0), and DirectPlay for networking. A major milestone was DirectX 8.0 (2000), which unified Direct3D and DirectDraw into a single model and introduced shader support. DirectX 9.0 (2002) brought programmable shaders (HLSL) and became the baseline for many games. DirectX 10 (2006) was exclusive to Windows Vista and introduced a new driver model, but had limited adoption. DirectX 11 (2009) added tessellation, compute shaders, and multithreaded rendering, and remained widely used. The latest iteration, DirectX 12 (2015), offers a low-level API with explicit control over GPU resources, reducing CPU overhead and improving performance on modern hardware.4 DirectX 12 Ultimate (2020) added support for ray tracing, variable-rate shading, and mesh shaders.

3

Technical details and performance

DirectX is designed to be backward-compatible; each major version retains the ability to run software written for earlier versions, though some features may be emulated. The APIs are implemented in the form of COM (Component Object Model) interfaces, which are language-neutral and can be used from C++, C#, and other languages via wrappers.5 Performance improvements in later versions come from reducing driver overhead, allowing multiple threads to submit commands concurrently, and giving developers direct control over memory management and resource transitions. DirectX 12's low-level model is similar to Vulkan, an open standard developed by the Khronos Group, and the two APIs compete in the PC gaming space. Microsoft also provides the PIX debugging and profiling tool for DirectX applications, which helps identify bottlenecks and optimize GPU usage.2

4

Lesser-known aspects

While DirectX is primarily associated with Windows, Microsoft has ported a subset of the APIs to other platforms: DirectX 12 is available on Xbox consoles, and the company has released an open-source DirectX 12 shader compiler.6 Through projects like Wine and DXVK, Linux users can run many DirectX 9–11 games with near-native performance. Another obscure detail is that DirectX was originally named “Windows Game SDK” before marketing renamed it. The “X” in DirectX does not stand for anything specific—it was chosen to evoke “extreme” or “Xbox” branding. The API also includes DirectX Diagnostic Tool (dxdiag), which can be used to troubleshoot hardware and driver issues. Additionally, Microsoft's DirectX Raytracing (DXR) is a vendor-agnostic extension to DirectX 12 that enables hardware-accelerated ray tracing, competing with NVIDIA's proprietary RTX technology.7 Finally, the DirectX SDK has been deprecated in favor of the Windows SDK, but legacy tools remain available.

Glossary

Direct3D
The component of DirectX for 3D graphics rendering.
DirectCompute
An API for general-purpose computing on the GPU (GPGPU).
HLSL
High-Level Shader Language, used to program shaders in DirectX.
Shader Model
A specification defining the capabilities of shader hardware; DirectX 12 supports Shader Model 6.7.
DXR
DirectX Raytracing, an extension for hardware-accelerated ray tracing.
PIX
Microsoft's performance tuning and debugging tool for DirectX applications.