Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

VKD3D

gitlab.winehq.org

  • Free plan
  • Windows
  • macOS
  • Linux
7.4 Club score Visit gitlab.winehq.org

What VKD3D is

VKD3D is a free, open-source set of libraries and tools for porting Direct3D applications to other platforms. Its low-level Direct3D 12 implementation uses Vulkan, with project examples covering Vulkan or OpenGL on Linux and Metal on macOS. The shader library translates formats including HLSL, DXIL, DXBC, SPIR-V, and Direct3D shader formats. VKD3D also includes a command-line HLSL compiler, a DXBC inspection and manipulation utility, and familiar Direct3D entry points such as D3D12CreateDevice() and D3DCompile(). GLSL and Metal Shading Language output remain works in progress and are not ready for release. VKD3D does not implement DXGI interfaces for adapter enumeration, swapchains, or windowing, so applications must provide them or use GLFW, SDL, or Qt. Building requires SPIRV-Headers, Vulkan-Headers 1.3.228 or later, Perl, and libjson-perl. It is licensed under LGPL 2.1 or later.

Who it suits

VKD3D suits developers porting Direct3D applications to Linux, macOS, or other Vulkan-based environments. It is also useful for working with shader translation and Direct3D 12 interfaces.

Good to know, and what to watch

  • Free open-source LGPL 2.1-or-later license
  • Direct3D 12 implementation built on Vulkan
  • HLSL compiler and DXBC utility included
  • Supports Linux, macOS, and Windows
  • Translates several shader formats
  • GLSL and MSL outputs are works in progress
  • DXGI windowing interfaces are not implemented
  • Build requires several dependencies

The verdict

VKD3D provides translation, runtime, and developer tools for Direct3D portability. Applications must supply windowing infrastructure, and some shader outputs are not release-ready.

What the maker publishes

Application integration
The utilities library provides familiar Direct3D entry points such as D3D12CreateDevice() and D3DCompile(). source
Build requirements
Building requires SPIRV-Headers, Vulkan-Headers version 1.3.228 or later, Perl, and libjson-perl. source
Debug interface
The project says its environment variables are mostly for debugging and are not a stable interface, so they may change or be removed. source
Developer tools
VKD3D includes a command-line HLSL shader compiler and a utility for inspecting and manipulating DXBC. source
Developer tools
The vkd3d 2.0 announcement says D3DCompile(), D3DCompile2(), D3DCompile2VKD3D(), and D3DPreprocess() support D3D_COMPILE_STANDARD_FILE_INCLUDE as an include handler. source
Development and CI
The project says development takes place on Wine GitLab, where merge requests are automatically tested with GitLab CI. source
GLSL and MSL status
The project README says GLSL and Metal Shading Language output are works in progress. source
Graphics API
The project describes VKD3D as a 3D graphics library built on Vulkan with an API similar, but not identical, to Direct3D 12. source
Graphics backend
Its low-level Direct3D 12 implementation is built on Vulkan. source
HLSL improvements
Version 2.0 added HLSL shader features including structured thread group shared memory stores, interlocked operations, and a common subexpression elimination optimization pass. source
Intended use
The README describes the project as helping port Direct3D applications to platforms such as Linux with Vulkan or macOS with Metal. source
License
The project is made available under the GNU Lesser General Public License version 2.1 or later. source
License
The project is made available under the GNU Lesser General Public License version 2.1 or later. source
Platform examples
The project describes porting Direct3D applications to Vulkan or OpenGL on Linux and Metal on macOS. source
Purpose
VKD3D is a set of libraries and tools for porting Direct3D applications to other platforms. source
Purpose
VKD3D is a set of libraries and tools intended to help port Direct3D applications to other platforms. source
Release
The vkd3d team announced version 2.0 on May 21, 2026, with source code available as a tarball and from Git repositories. source
Shader formats
Supported inputs include HLSL, DXIL, DXBC/TPF, and Direct3D shader model 1–3 bytecode; outputs include SPIR-V, GLSL, MSL, Direct3D formats, and Direct3D shader assembly. source
Shader outputs
GLSL and Metal Shading Language output are described as works in progress and are not considered ready for release. source
Shader targets
Version 2.0 includes an experimental Metal Shading Language target with support for pixel shader specified stencil reference values. source
Shader translation
The shader library translates among formats including HLSL, DXIL, DXBC, SPIR-V, and Direct3D shader formats. source
Shader translation
libvkd3d-shader translates between supported shader formats and can retrieve shader reflection information. source
Source availability
The project announcement lists a downloadable vkd3d 2.0 source tarball and Git repositories on WineHQ GitLab and Codeberg. source
Windowing limitation
VKD3D does not implement DXGI interfaces for adapter enumeration, swapchains, or windowing; applications must provide these or use a library such as GLFW, SDL, or Qt. source

Checked against the maker's pages on 9 Oct 2026.