r/GraphicsProgramming • • Oct 20 '26

Question What do you think of vulkan?

Is it worth learning it as someone who is still relatively a beginner/early mid level c++ programmer for graphics or are other alternatives better?

32 Upvotes

54 comments sorted by

View all comments

1

u/PurpleBudget5082 Oct 20 '26

Hi, I would say I'm a beginner too, but on the high end of the axis, I wrote a simple software renderer and 2 D3D12 renderers, the first one was full of spaghetti code taken from different tutorials/books, and the second one was much cleaner a render graph (which is something that really makes the renderer architecture clean but all tutorials completely ignore).

Between the 3 modern APIs, Vulkan seems like the worst to me, it's really verbose, some things are more complicated then they are in D3D12 or Metal (for example sync primitives, in D3D12 if your renderer is not AAA you can just use a fence and be done with it, in Vulkan there are 3 different sync primitves that you have to use). It's worth to note that as I started to understand a little bit more about graphics some things in Vulkan seem elegant.

If you are either on Mac or Windows I would recommend to take a look at Metal/D3D12 (or 11). If not, maybe WebGPU or SDL_GPU, although both have some problems.

2

u/LoneWolf6062 Oct 20 '26

For sync primitives, timeline semaphores are the only thing u need for all kinds of synchronization. The only exception is for swapchain sync where u need binary semaphores.

-1

u/PurpleBudget5082 Oct 20 '26

Yes, but they are a newer addition and some tutorials don't mention them.

1

u/Economy_Bedroom3902 Oct 20 '26

Vulkan is an everything plus the kitchen sink framework.  It means there is basically nothing in graphics or rendering you can't use vulkan for.  But it forces you to handle stuff you don't need for any one specific application.