Quite a big surprise, but truly a welcome one, and a great one for game developers. Microsoft are moving more towards open standards by adopting SPIR-V for DirectX.
Joining up with the Khronos SPIR and Vulkan working groups, once Shader Model 7 is released, it means DirectX 12 will accept shaders compiled to SPIR-V. This change could make it a whole lot simpler for developers to put their games on Linux, and make the job of Proton to get Windows games working on Linux / Steam Deck a bit easier too.
Some key parts of their announcement copied below:
In the 8 years since Shader Model 6.0 was first introduced, Direct3D and HLSL have grown considerably in both features and adoption. Releasing DXC on GitHub and the tremendous contributions from open-source collaborators and partners played a significant role in expanding HLSL’s user base to include Vulkan and Metal developers. As a result of this expansion, the team is focusing on developing HLSL support in Clang to enable us to keep up with industry demand for openness and new features. As we look end to end at the best way to support the full spectrum of our users, we are working hard to support HLSL for both DXIL and SPIR-V with Clang and LLVM.
To better enable HLSL’s Vulkan support, the HLSL team is now participating in The Khronos Group’s SPIR and Vulkan working groups. This direct participation will allow smoother collaboration and more rapid adoption of Vulkan features. We believe this will ensure that HLSL is the best language for writing shaders for every GPU runtime environment.
[…]
As we look to the future, maintaining a proprietary IR format (even one based on an open-source project) is counter to our commitments to open technologies, so Shader Model 7.0 will adopt SPIR-V as its interchange format. Over the next few years, we will be working to define a SPIR-V environment for Direct3D, and a set of SPIR-V extensions to support all of Direct3D’s current and future shader programming features through SPIR-V. This will allow developers to take better advantage of existing tools and unify the ecosystem around investing in one IR.
In addition to providing a compiler for HLSL to Direct3D’s SPIR-V, we will also be building and providing translation tools to translate SPIR-V to DXIL and DXIL to SPIR-V. Those tools will allow and driver developers to gradually transition and gracefully adapt tooling and drivers.
See more in the Microsoft announcement.
Quoting: ShabbyXWhy couldn't they? Add an extension no one else can implement (or want to, because it's believed to be a bad idea), devs start using it because needed for xbox/windows, shader is now no longer portable to other systems
For Linux gaming it doesn't make much of a difference whether to implement/emulate some proprietary Microsoft shader feature in vkd3d-proton/dxil-spirv or implementing a SPIR-V extension. Except the latter should be actually easier, since the spec is open, you don't have to reverse engineer anything, you can utilize existing infrastructure in Mesa and probably more people will benefit from it in the end.
Ultimately this is a positive change. Microsoft contributes to SPIR-V, everyone benefits from it. Windows apps (not only games) will be a little bit more stable and faster on Linux, less burden on Proton developers
Last edited by satoridepon on 20 September 2024 at 3:01 pm UTC
Quoting: dpanterMicrosoft Embracing open standards nEver fails to sEnd a chill down my spine.
"Direct3D’s SPIR-V" does sound like "Microsoft Java."
On the other hand, feature-completeness with Direct3D has been an explicit goal of Khronos for Vulkan, and I can't think of a way that that would be made harder by Microsoft being involved in the process.
Quoting: pbWhich one do you think it is?
1. Corporate cost-cutting
2. Preparing for a future antitrust (look, we're so open!)
3. Actually caring about open standards
Laying the groundwork for a future version of Windows that will be based on Linux?
Quoting: pbWhich one do you think it is?
1. Corporate cost-cutting
2. Preparing for a future antitrust (look, we're so open!)
3. Actually caring about open standards
4. they figured out that wine/proton were already perfect at this, so they had nothing to lose in doing that, yet they would earn the benefit of being seing as the good guys, pure pr movement.
"We believe this will ensure that HLSL is the best language for writing shaders for every GPU runtime environment."
they want to ensure that their standard is still the standard...
wich is good for everyone who chose to learn it, and bad for those who chose the vulkan route.
Quoting: ShabbyXshadders current state is not being portable...Quoting: Nateman1000Quoting: dpanterMicrosoft Embracing open standards nEver fails to sEnd a chill down my spine.
I’m not sure Microsoft can Embrace, Extend, and Extinguish a shader system
Why couldn't they? Add an extension no one else can implement (or want to, because it's believed to be a bad idea), devs start using it because needed for xbox/windows, shader is now no longer portable to other systems.
Quoting: pbWhich one do you think it is?All the 3 + 1:
1. Corporate cost-cutting
2. Preparing for a future antitrust (look, we're so open!)
3. Actually caring about open standards
To cut costs while making sure their position is less attackable by untitrust actions, the corporations assigns a genuinely caring employ to an open-source project, who will achieve alone the result of a full team.
See more from me