Skip to main content

What is DirectX, and why is it important for PC games?

DirectX is the secret sauce that allows most of the best PC games to run. It solves a problem for developers by offering a standardized solution to communicate instructions to your graphics card, and it’s a cornerstone of the best graphics cards you can buy right now.

We’ll run you through what DirectX is, why DirectX 12 Ultimate is important, and how you can find what DirectX version is installed on your PC.

Recommended Videos

What is DirectX?

DirectX 12 Ultimate logo.
Image used with permission by copyright holder

DirectX is an application programming interface (API) developed by Microsoft for Windows and Xbox. A graphics API is a middleman that facilitates sending instructions from software to the hardware inside your PC. In the early days of computers, instructions went straight to the hardware. However, as games have become more complicated and security measures more direct, APIs have been the backbone of telling your GPU what to do.

Get your weekly teardown of the tech behind PC gaming
Check your inbox!

In years past, game developers would need to write drivers for multiple graphics cards. APIs like DirectX are standardized, which allows your AMD or Nvidia drivers to do everything regardless of what graphics card you have. Graphics APIs also enable features like hardware-accelerated ray tracing, and they can boost performance through various optimizations.

DirectX isn’t the only graphics API, but it’s the main one you’ll encounter. It’s exclusive to Windows, however, while open-source APIs like Vulkan provide cross-platform support.

DirectX 12 Ultimate explained

DirectX ray tracing in Battlefield V.
Image used with permission by copyright holder

The most recent version of DirectX is DirectX 12 Ultimate, which is available on Windows 10, Windows 11, and Xbox Series X/S. Microsoft describes it as “additive” to DirectX 12, bringing features like ray tracing and variable rate shading to Windows and Xbox consoles.

Here are all of the additional features in DirectX 12 Ultimate:

  • DirectX ray tracing (DXR): An early version of ray tracing introduced in games like Fortnite and Battlefield V. Most titles that support ray tracing do so through DXR (though Vulkan has its own ray tracing support, as well).
  • Variable rate shading (VRS): Allows the GPU to allocate different amounts of power to different areas in a frame. The idea is to boost performance by focusing on the most important areas of a scene, which saves resources in less demanding areas.
  • Mesh shaders: Mesh shaders are a complex topic, but they essentially combine multiple shader steps into a single process. This avoids passing between your CPU and RAM when drawing meshes, which improves performance.
  • Sampler feedback: Modern games stream assets into the game world, and the game is forced to predict what to stream next based on what the player is doing. Sampler feedback feeds samples of what could happen without actually executing the instruction, allowing games to make better decisions about what assets to stream in.

Although DirectX 12 Ultimate has many new features, you don’t need to worry about them. They’re mainly for developers to optimize games beyond what they could do in DirectX 12 or DirectX 11. The most important addition is DXR, which enables ray tracing not only on PC but on the Xbox Series X, as well.

How to install and update DirectX

DXdiag menu in Windows 11.
Image used with permission by copyright holder

You can’t install DirectX directly. It comes with Windows, and you can only update it with Windows. If you see an offer to install DirectX online, avoid it at all costs. Microsoft doesn’t make any installers available.

Installing and updating DirectX involves performing a Windows Update. Read our full guide on how to install Windows 11 if you’re starting from scratch. Before updating DirectX, you need to figure out your DirectX version, which you can do by following these steps:

  • Right-click on the Windows icon in the Start bar and select Run. 
  • Type “dxdiag” into the box and select OK. 
  • Check for DirectX version under the System tab.

As long as you’ve kept Windows up to date, you should have the latest version. If you don’t, you can force Windows to check for new updates with the following steps:

  • Use Windows Key+S to pull up the search box.
  • Search for Check for updates and select it.
  • Use the Check for updates button to search for new updates.
  • Click Install now. 

Which version of DirectX should you use?

A player stands next to their mushroom companion in Tiny Tina's Wonderlands.
Image used with permission by copyright holder

DirectX is backward compatible, so it’s usually best to use the most recent version that the game you want to play supports. Most games only support one version, but there are a handful of titles that straddle the line between versions like Control, Civilization VI, and Tiny Tina’s Wonderlands. 

More recent versions of DirectX bring better features and opportunities for developers to optimize performance. If you want to dig in deep on those optimizations, make sure to read our comparison between DirectX 11 and DirectX 12.

Jacob Roach
Former Digital Trends Contributor
Jacob Roach is the lead reporter for PC hardware at Digital Trends. In addition to covering the latest PC components, from…
My most anticipated game of 2024 is getting the full Nvidia treatment
A character gearing up for battle in Black Myth: Wukong.

As if I wasn't already looking forward to Black Myth: Wukong enough, Nvidia just announced that the game is getting the full RTX treatment when it launches on August 20. We see new games with ray tracing and Nvidia's Deep Learning Super Sampling (DLSS) all the time, but Black Myth: Wukong is joining a very small list of titles that currently leverage the full suite of features Nvidia has available.

The game comes with, as Nvidia describes it, "full ray tracing." That undersells the tech a bit. As we've seen with games like Alan Wake 2, "full ray tracing" means path tracing. This is a more demanding version of ray tracing where everything uses the costly lighting technique. It's taxing, but in the new games that we've seen with path tracing, such as Cyberpunk 2077 and Portal with RTX, it looks stunning.

Read more
This new GPU feature is ‘a whole new paradigm’ for PC gaming
RX 7900 XTX slotted into a test bench.

Microsoft has released its Agility SDK 1.613.0, which features some critical components that will be shown to developers at the Game Developers Conference (GDC) in San Francisco next week. The most interesting component is Work Graphs, which Microsoft describes as "a whole new paradigm" for graphics cards.

Work Graphs enable GPU-driven work. Normally when you're playing a PC game, there's a relationship between your GPU and CPU. Your CPU gets work ready and sends it to your GPU, and then your GPU executes that work. Work Graphs is an approach that allows your GPU to schedule and execute its own tasks, which has some massive implications for performance.

Read more
The 6 best places to buy a prebuilt gaming PC in 2024
The Alienware Aurora Ryzen™ Edition R10 gaming PC powered up against a black backdrop.

Buying one of the best gaming PC deals is always a smart move but it makes even better sense to focus on some of the best places to buy a prebuilt gaming PC. Responsible for many of the best gaming PCs around, such manufacturers tend to offer prebuilt units at a great price with the option to customize components as you please.

Essentially, when you buy from one of the best places for prebuilt gaming PCs, all you need to do is hand over the money then add on one of the best gaming monitors but it’s nice to be able to make some tweaks too. We’ve picked out the best places to buy a prebuilt gaming PC, bearing in mind different budgets and needs. Here’s what we recommend.
Dell

Read more