by protoster · 8y ago · 0 comments
If so, great news! Maybe we'll one day be free from tyranny of Windows when it comes to gaming. In my ideal world, operating systems should be interchangeable like web browsers and competing to provide the best implementation of an open standard rather than trying to trap developers and users by providing the most enticing proprietary API.
Have there been any previous attempts to do this? Any success?
They want to provide C bindings (vulkan.h).
> Have there been any previous attempts to do this? Any success?
MoltenVK translates Vulkan into Metal. Looks like gfx-rs has a potential to break these lock-ins one step further with translating Vulkan into DirectX 12. They should also consider making GNM backend for completeness.
My understanding is the only extant device is the Xbox One, which doesn't support Vulkan not because the hardware lacks the ability or drivers (since its an AMD SoC shared with the PS4 and using GCN 3 tech) but because of politics trying to lock developers into their API over the industry standard.
Trying to fight politics with software rarely ends well, especially with hobbyist software. Microsoft has complete control over their console and are probably willing to take moves to prevent the use of transpilers on their platform in the same vein Apple has.
But if MS will try banning things like translation layers, they already can get some anti-trust pushback. Apple while being complete lock-in jerks, so far didn't prevent usage of MoltenVK on their systems. Recent incident with using private APIs was resolved, and Apple allowed applications that use MoltenVK back on iOS.
https://www.intel.com/content/www/us/en/support/articles/000...
Many over the years, and largely not. Unreal and Unity are probably the closest to successful to date, but they are full-blown game engines, at a higher level of abstraction, rather than just graphics APIs. OpenGl mostly failed as a multi-platform solution, because vendors provide varying levels of compatibility in their drivers, not to mention unholy extension soup, and you still have to deal with all the platform nastiness of everything else besides sending triangles to the GPU.
Get ready to play extension and version golf.
And variable driver support is common across all big graphics APIs. If anything, the feature per driver coverage here is better than DX12.
So there is no point to "abstract graphics API for any OS/CPU instruction set" then, when most of the work - and we are talking about graphics acceleration, where performance is everything - is and increasingly will be handling all of that quirks.