r/GraphicsProgramming • u/PeterBrobby • Apr 15 '24
Is Vulkan a failed API?
I know it's modern and can do things that older APIs like OpenGL can't but how many developers are benefiting from the added verbosity and complexity?
The OpenGL reddit has more members and higher engagement than the Vulkan reddit despite the fact that OpenGL hasn't been updated in 7 years.
Personally, I would prefer if an API like Metal had cross platform support, it's modern and far less verbose.
0
Upvotes
4
u/hishnash Apr 15 '24
The reason many of us prefer metal is the design aims of apple were very different to that of the commits that makes up the Kronos group.
Firstly apple did not just build metal for games, and even more so they did not just build it for large game engine middle ware dev houses (like Epic with Unreal etc).
Apple wanted an API that would be easy for regular app developers to use ad-hock (even if your not doing a game but just need some nice smooth 2D rendering etc) there are a surprising number of apps on iPhones and macs that have custom metal backends for 2D content. Apple wanted this to be approachable for devs that were not experienced graphics programers.
The other think apple wanted from metal was an api that they could use as the backbone of the OS compositing engine and as a hybrid compute display stack that lets professional applications (and the OS) mix compute and display tasks easily. The selection of c++ as the basis for the shading lang is a clear choice here to make it easier to add MTL support to existing c++ code bases (such as CUDA) but it is also there to be more approachable to non graphics programers.
There are members of the Kronos group that absolutely did not want VK to take the pathway of MTL.
Of cource the other benefit MTL has over VK is the much higher HW target, this helps it avoid needing many of those options and verbosity as the api designers only care about Apples GPUs.