r/GraphicsProgramming • u/ANSystemTech • 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?
29
Upvotes
View all comments
Show parent comment
8
u/PeePeePantsPoopyBoy Oct 20 '26 edited Oct 20 '26
People normally say that starting with OpenGL is the best way but I actually do disagree and I actually do think OpenGL can and will misguide you. The question is do you want to learn how to do graphics or how to do efficient GPU systems. If you just want to learn fancy geaphics techniques and want to focus on shaders, then OpenGL will be enough at the beginning, but if you want to actually learn to do efficient renderers, do advanced or modern techniques, and learn proper optimizations, then Vulkan or DX12 is the way to do. I tend to encourage people to try climbing the steep Vulkan learning curve because the beginning is the hard part, once you get past the first steps everything actually becomes much easier and (as the initial response said) more sane. I tend to feel that Vulkan is much harder to start, but much much more scalable over time. Plus, as I said before, many new techniques need technology that just does not exist in OpenGL, like mesh shaders, device buffer addresses, sparse memory or hardware raytracing.
Just don't obsess with hardware support and try to do fallbacks to Vulkan 1.0 in your renderers (I've seen too many of these). If your GPU supports the full suite of Vulkan features up to 1.4 (as AMD and Nvidia desktop cards do) then go ham and use them, most of them can and will make your life easier. Other tools to look that are super interesting are SLang, Volk and VMA (PLEASE USE VMA). I do not recommend using Vulkan Hpp RAII personally but you are free to look into it if you want. I tend to shy away from Vulkan Hpp in general because it explodes compile times, but I've heard cpp modules solve that mostly (or maybe it was just my experience I don't know)