Fast forward to 2018. A project called (DirectX over Vulkan) changed everything. Instead of translating DirectX 9, 10, and 11 calls into generic Linux code, DXVK translated them directly into Vulkan , a high-performance, cross-platform graphics API.
The answer is complicated. While translation is great for gaming, developers working on game engines or graphic tools generally prefer native support. Interestingly, Microsoft has begun open-sourcing parts of DirectX (like D3D12 translation layers), largely to support their own goals with the Windows Subsystem for Linux (WSL). directx linux
To bridge this gap, developers created "translation layers." These programs act as real-time interpreters, taking DirectX calls and translating them into Vulkan, which Linux understands natively. Fast forward to 2018
: This is the heavy lifter for modern gaming. It translates DirectX 9, 10, and 11 into Vulkan. It is a core component of Valve's Proton (the technology powering the Steam Deck), allowing Windows games to run on Linux with near-native performance. The answer is complicated
Because Vulkan is incredibly close to the metal (similar to DirectX 12), this translation was incredibly efficient. Suddenly, games like The Witcher 3 and Doom were running on Linux at near-Windows frame rates.
While Linux doesn't "have" DirectX in the traditional sense, the community has effectively built its own version of it through clever engineering. For most users, the barrier between Windows gaming and Linux has never been thinner.