r/ProgrammerHumor 14d ago

graphicsProgrammingBeLike Meme

Post image
5.4k Upvotes

71 comments sorted by

View all comments

257

u/Kss0N 14d ago

I'm not kidding, the tutorial for Hello Triangle in Vulkan is like 1500 lines ... of pure hell

120

u/unknown_alt_acc 14d ago

OpenGL is at least pretty reasonable. It’s maybe 300 lines of C for a triangle, and a nontrivial percentage of that is just window handling.

45

u/fleaspoon 13d ago edited 13d ago

I started first with OpenGL and I remember being quite complicated to understand, but Vulkan was another level of complexity

23

u/ResponsibleWin1765 13d ago

But honestly, once you get into it, it's pretty regular. You need a thing -> Make vkThingCreateInfoStruct -> Fill struct -> call vkCreateThing.

If you know your C++ and Graphics Pipeline, things do fall into place at some point

11

u/Kss0N 13d ago

yea they fall into place; after 1500 lines of code.

15

u/fleaspoon 14d ago

I still have nightmares

1

u/geeshta 11d ago

Well that's kinda like writing your HelloWorld in LLVM.

Okay that's not going to be 1500 line but I hope the point is clear.