The Microsoft DirectX API will arrive in the Windows subsystem for Linux

Microsoft announced that it is preparing to add DirectX API support to WSL (Windows Subsystem for Linux). The latest Windows subsystem for Linux 2 (WSL 2) will virtualize DirectX to Linux applications running on it. WSL is a translation layer for Linux applications to run on Windows .

Unlike Wine, which tries to translate Direct3D commands to OpenGL, what Microsoft is proposing is a true DirectX interface for WSL applications, which can essentially talk to the hardware (the host’s kernel-mode GPU driver) directly.

For this purpose, Microsoft introduced the Linux edition of DXGkrnl, a new kernel-mode driver for Linux that talks to the DXGkrnl driver of the Windows host. With this, Microsoft promises full access to low-level Direct3D 12, DxCore, and DirectML APIs.

It will also serve as a conduit for third-party APIs, such as OpenGL, OpenCL, Vulkan, and CUDA. Microsoft hopes to launch this feature-packed WSL with the Windows Display Driver Model 2.9, which is really unknown when it will arrive (WDDM 2.9).

At // build 2020 we announced that GPU hardware acceleration will be coming to the Windows subsystem for Linux 2 (WSL 2).

What is WSL? WSL is an environment in which users can run their Linux applications from the comfort of their Windows PC. If you are a developer working on a container workload that will be deployed to the cloud within Linux containers, you can develop and test these workloads locally on your Windows PC using the same native Linux tools that you are used to. In response to popular demand, these Linux applications and tools can now take advantage of GPU acceleration.