Skip to main content
ubuntu-blog.com

Search Ubuntu Blog

Install DirectX 10 on Ubuntu: Wine, DXVK and Proton Explained

Author: First published Last updated In Software, Codecs

You cannot install Microsoft DirectX on Ubuntu, but you can run DirectX 10 games with Wine and DXVK. Wine supplies its own Direct3D, and DXVK translates Direct3D 8, 9, 10 and 11 calls into Vulkan. Steam Play, Lutris and Bottles set DXVK up automatically. You need a working Vulkan graphics driver, which you can check with vulkaninfo, and a recent Wine.

Covered in the guide: How to Install Wine on Ubuntu (24.04, 26.04 and Older Releases)

You cannot install Microsoft’s DirectX on Ubuntu, and you do not need to. Wine, described in the guide to installing Wine on Ubuntu, supplies its own Direct3D, and a translation layer called DXVK turns Direct3D 10 calls into Vulkan for good speed. This page explains what that means, how to check your graphics stack, and how to set DXVK up by hand if your launcher does not.

Can you install DirectX 10 on Ubuntu?

No, not in the sense of running Microsoft’s installer. DirectX is a set of Windows graphics interfaces. On Ubuntu, Wine provides replacement Direct3D libraries, and projects such as DXVK translate Direct3D calls into Vulkan, which Linux graphics drivers support natively.

Direct3D 10 is the graphics part of DirectX 10, and it is the part a Windows game actually calls. The old advice to “install DirectX 10 on Ubuntu” usually meant one of two things: running Microsoft’s own DirectX installer inside Wine, which is rarely the real fix, or getting a game’s Direct3D 10 mode to work. The second is the real goal, and DXVK is the standard answer.

DXVK describes itself as a Vulkan-based translation layer for Direct3D 8, 9, 10 and 11 that allows running 3D applications on Linux using Wine. For Direct3D 10 it uses the files d3d10core.dll, d3d11.dll and dxgi.dll. Direct3D 11 uses d3d11.dll and dxgi.dll, so one DXVK install covers both.

How do DXVK, Wine and Proton fit together?

Wine implements Windows, DXVK is a graphics add-on for Wine, and Proton is Valve’s Wine build with DXVK already included. You choose the layer that matches how you launch the game.

Laptop and an open black PC case showing a graphics card and fans, hands typing on a keyboard

Piece What it does Where you meet it
Wine Runs Windows programs; has a built-in OpenGL-based Direct3D (wined3d) wine game.exe
DXVK Translates Direct3D 8, 9, 10 and 11 to Vulkan Bundled with Proton, Bottles, Lutris; manual install
VKD3D-Proton Translates Direct3D 12 to Vulkan Bundled with Proton
Proton Valve’s Wine variant for Steam Play Steam

Valve’s Proton repository lists Wine, DXVK and vkd3d-proton as components, and says DXVK is the default Vulkan-based renderer. It also lists an option to use the OpenGL-based wined3d instead of Vulkan-based DXVK for Direct3D 11, 10 and 9, which is useful when a game misbehaves under DXVK.

The names help when you read game reports. “Runs on DXVK” means the game’s Direct3D calls go through Vulkan. “Runs on wined3d” means they go through Wine’s own built-in Direct3D.

What do you need before you start?

You need a working Vulkan graphics driver, a recent Wine, and a game launcher or Wine prefix to put DXVK into. Without Vulkan, DXVK has nothing to translate to.

Check Vulkan first

Install the Vulkan diagnostic tools and ask the driver what it supports:

sudo apt install vulkan-tools
vulkaninfo --summary

If the command lists your graphics card, Vulkan is working. If it reports no devices, fix the graphics driver before touching Wine. For NVIDIA cards, install the recommended proprietary driver from Ubuntu’s “Additional Drivers” tool. For AMD and Intel cards, the open-source Mesa drivers that ship with Ubuntu provide Vulkan, and updating Ubuntu normally brings newer Mesa.

How recent does the driver need to be?

DXVK’s driver-support wiki lists minimum versions for DXVK 3.x: Mesa RADV 25.0 for AMD, NVIDIA proprietary driver 575.51.02, NVK 25.1 and Intel ANV 25.1. DXVK 3.x also expects Vulkan 1.4 support and Wine 10.1 or newer for its Wine Vulkan layer, though older AMD GCN cards such as the Radeon HD 7xxx series continue to work.

Older DXVK releases ask for less. The wiki lists legacy DXVK 1.10.3, which needs Vulkan 1.1, with minimums of Mesa RADV 20.2, NVIDIA 470.82 and Intel ANV 22.0. In practice, a game launcher such as Steam, Bottles or Lutris picks a DXVK version that suits your Wine, so you rarely choose by hand.

Ubuntu releases carry fixed Mesa versions, so an older LTS may sit below a newer DXVK’s minimum. If you hit that on an older release, keep using the DXVK version your launcher chose, or move to a newer Ubuntu. The release cycle matters here, and the guide to updating Ubuntu from the command line covers keeping packages current.

What about GPUs without Vulkan?

Very old graphics cards may lack Vulkan support. In that case, run the game with Wine’s built-in Direct3D (wined3d), which uses OpenGL. It is slower for most modern titles but works on more hardware. Proton’s repository lists an option to force this path.

How do you get DirectX 10 games running the easy way?

Let a launcher handle DXVK. Steam Play, Lutris, Bottles and Heroic Launcher can set DXVK up automatically, according to DXVK’s own README, so a manual install is usually unnecessary.

Steam games

  1. Install Steam and sign in.
  2. Open Settings, then Steam Play, and enable it for all other titles.
  3. Install the game. Proton applies DXVK by default.
  4. If the game fails, right-click it, open Properties, then Compatibility, and try a different Proton version.

Ubuntu’s Steam documentation walks through the same menus and notes that a game marked “Native” on ProtonDB does not need Proton at all.

Games from other stores

Use Lutris or Bottles. Both create a Wine environment with DXVK enabled for you. Bottles is distributed as a Flatpak; Lutris offers a .deb and a Flatpak. Open the program, add your game’s installer and follow the prompts. If you want a deeper look at the launchers, the pillar page compares them in its section on Bottles and Lutris.

How do you install DXVK into a Wine prefix by hand?

Download a DXVK release, copy its DLLs into the prefix, and tell Wine to prefer them. This is only needed for plain Wine without a launcher.

  1. Install Wine and set up your prefix. The steps are in the Wine installation guide.

  2. Download a DXVK release archive from the project’s GitHub releases page and extract it. It contains x64 and x32 folders.

  3. Point your shell at the prefix:

    export WINEPREFIX=~/.wine
  4. Copy the 64-bit DLLs into the prefix’s system32 folder and the 32-bit DLLs into syswow64:

    cp x64/*.dll $WINEPREFIX/drive_c/windows/system32
    cp x32/*.dll $WINEPREFIX/drive_c/windows/syswow64

    On a 32-bit-only prefix, the 32-bit DLLs go into system32 instead.

  5. Run winecfg, open the Libraries tab, and add a native override for each of d3d8, d3d9, d3d10core, d3d11 and dxgi, as the DXVK README describes.

  6. Start the game.

To confirm DXVK is actually in use, enable its on-screen display:

DXVK_HUD=1 wine game.exe

The README names the DXVK_HUD environment variable for this. If the overlay appears, the game is running on DXVK.

How do you remove DXVK again?

Delete the DXVK DLLs from the prefix, remove the native overrides in winecfg, then run wineboot -u to restore Wine’s originals. If a prefix is badly tangled, creating a fresh one is faster than repairing it.

What about Direct3D 12 and newer games?

Direct3D 12 games use VKD3D-Proton, a separate project that translates Direct3D 12 to Vulkan. Its requirements are stricter than DXVK’s, and it is mainly delivered through Proton.

The project’s README states that it targets the full Direct3D 12 API on top of Vulkan and is the development effort for Direct3D 12 support in Proton. It requires Vulkan 1.3 and several device features and extensions, among them VK_EXT_robustness2 and VK_KHR_push_descriptor. It recommends AMD RADV 26.1 or newer (Mesa 22.0 is the stated minimum), NVIDIA 595-series drivers as a recommended minimum, and the latest possible Mesa for Intel. These numbers move quickly, so read the current README rather than relying on a copy.

The README also notes that DXGI is shared: DXVK 2.1 and later and vkd3d-proton share one DXGI implementation. For most people the practical advice is simple: use Proton for Direct3D 12 games and keep your graphics driver current.

Why does my DirectX game crash, stutter or show a black screen?

Graphics card with a heatsink and two fans on a wooden desk next to a mouse, a cable and a screwdriver

Most problems trace to the driver, a missing runtime, or the wrong renderer. Check them in this order.

  1. Vulkan is missing or too old. Run vulkaninfo --summary. If it fails, update or reinstall the graphics driver.
  2. The wrong renderer is in use. Switch between DXVK and wined3d. In Steam you can set the Proton option that forces OpenGL wined3d instead of DXVK; in a Wine prefix, remove the native overrides.
  3. A runtime library is missing. Some games need extra libraries beyond Direct3D. Winetricks can install missing DLLs into a prefix. Use it for the specific component the game reports missing, rather than installing everything.
  4. An old Wine. DXVK 3.x expects Wine 10.1 or newer. If you use the Ubuntu package, check the version with wine --version, and consider the WineHQ repository or a Proton build.
  5. Stale shader cache. If a game stutters after a driver update, the first runs rebuild shaders, so give it a few launches before you judge it.
  6. A 32-bit library is missing. Make sure the i386 architecture is enabled and Wine’s 32-bit loader is installed.

When you report a problem, include your driver version, the Wine or Proton version, and the terminal output.

Is there a DirectX option on WSL 2?

WSL 2 is Ubuntu running inside Windows, so it is a different situation from a normal Ubuntu install. The old version of this page mentioned it because it is a way to run Linux tools next to Windows, which has its own DirectX. If your goal is to play Windows games, run them on Windows directly. The rest of this page assumes a real Ubuntu installation.

How do you check how well a game runs?

Measure rather than guess. Turn on DXVK’s overlay for frame rate, and compare runs before and after each change. The guide to creating performance benchmarks on Ubuntu shows how to gather repeatable numbers for processor, disk and graphics.

Change one thing at a time: the driver, the Wine version, or the renderer. If a change does not improve things, revert it. For games with community reports, ProtonDB lists what other players had to change, and the Wine AppDB does the same for non-Steam programs.

If you just want a native game to confirm that graphics work before you troubleshoot Windows ones, try World of Goo, which runs natively on Linux without Wine. For a rhythm game that is also native, see Frets on Fire.

Quick reference

  • Ubuntu does not install Microsoft DirectX; Wine provides Direct3D and DXVK translates Direct3D 8 to 11 to Vulkan.
  • Check Vulkan with vulkaninfo --summary before anything else.
  • Steam Play, Lutris and Bottles set DXVK up for you.
  • Manual DXVK: copy DLLs to system32 and syswow64, then set native overrides in winecfg.
  • Direct3D 12 uses VKD3D-Proton and stricter driver requirements.

Questions readers ask

Can you install DirectX on Ubuntu?

Not Microsoft's DirectX itself. DirectX is a set of Windows graphics interfaces, so Ubuntu uses replacements instead. Wine includes its own Direct3D libraries, and DXVK translates Direct3D 8, 9, 10 and 11 calls into Vulkan, which Linux drivers support. For Steam games, Proton includes DXVK by default. Install Wine or a launcher, check your Vulkan driver, and the game's Direct3D 10 mode works without any Microsoft installer.

Does Ubuntu support DirectX 10 games?

Yes, through compatibility layers, not natively. Wine can run many DirectX 10 games, and DXVK usually improves speed by sending Direct3D 10 calls to Vulkan. Success depends on the game, your graphics driver and the Wine version. Check the game's report on ProtonDB for Steam titles or the Wine Application Database for other programs before you spend time on it.

What is DXVK?

DXVK is a Vulkan-based translation layer for Direct3D 8, 9, 10 and 11. It lets Windows 3D programs run on Linux through Wine by converting Direct3D calls into Vulkan calls. It is built into Valve's Proton and is set up automatically by Steam Play, Lutris, Bottles and Heroic Launcher. You can also install it by hand into a Wine prefix by copying its DLLs and setting native overrides.

How do I check that Vulkan works on Ubuntu?

Install the tools with sudo apt install vulkan-tools, then run vulkaninfo --summary. If the output lists your graphics card, Vulkan works. If it shows no devices or an error, update the graphics driver first: use the recommended NVIDIA driver from Ubuntu's Additional Drivers tool, or update Ubuntu so AMD and Intel cards get a newer Mesa. DXVK cannot run without a working Vulkan driver.

How do I install DXVK in Wine manually?

Download a DXVK release and copy the 64-bit DLLs to the prefix's system32 folder and the 32-bit DLLs to syswow64. Then open winecfg, go to the Libraries tab, and add native overrides for d3d8, d3d9, d3d10core, d3d11 and dxgi. Set the DXVK_HUD variable to confirm it is active. To remove it, delete the DLLs and overrides and run wineboot -u.

Do I need DXVK if I use Steam?

No, because Proton already includes it. Valve's Proton repository lists DXVK as the default Vulkan-based renderer, and Steam Play applies it for you. You only change this if a game misbehaves, in which case Proton has an option to use the OpenGL-based wined3d renderer instead of DXVK for Direct3D 11, 10 and 9.

What about Direct3D 12 games on Ubuntu?

Direct3D 12 uses VKD3D-Proton, a separate project that translates Direct3D 12 to Vulkan and is part of Proton. It needs Vulkan 1.3 and newer driver features than DXVK, so it favors recent Mesa and NVIDIA releases. Use Steam Play with Proton for these games, keep your graphics driver current, and read the project's README for the current driver recommendations.

Why does my DirectX game show a black screen on Ubuntu?

A black screen usually points to the graphics stack. Check that vulkaninfo lists your GPU, update your driver, and make sure the 32-bit libraries are installed. Then try switching renderers: use a different Proton version, force the OpenGL wined3d renderer in Proton, or remove DXVK's native overrides in winecfg. Start the game from a terminal so you can read the error messages.

Further reading

  1. DXVK README (Vulkan-based Direct3D 8/9/10/11 translation layer) (github.com)
  2. DXVK wiki: Driver support (github.com)
  3. VKD3D-Proton README (github.com)
  4. ValveSoftware/Proton (github.com)
  5. Ubuntu Steam documentation: configure Proton and Steam Play (ubuntu.com)
  6. Winetricks README (github.com)
  7. Lutris downloads (lutris.net)
  8. Bottles documentation: installation (docs.usebottles.com)

Worth reading next

Top of page