Hacker News new | ask | show | jobs
by Narann 2040 days ago
With OpenGL you draw a triangle, and eventually write a pipeline.

With Vulkan you write a pipeline, and eventually draw a triangle.

2 comments

Best explanation of the two APIs I've ever heard.

OpenGL "hello triangle" is short only if you cut corners. If you do it the way you'd do in a production app, you're not that far off from the lines of code it takes to do it in Vulkan. It's still less, but on the same order of magnitude.

OpenGL gives you a Toyota, Vulkan gives you the parts to a Ferrari