4 ms·
Reminds me of this visualization[1]. The amount of code it takes to simply draw a triangle in OpenGL 1.x, OpenGL 3+, and Vulcan The learning curve has been sac
by ryandrake 5y ago
Reminds me of this visualization[1]. The amount of code it takes to simply draw a triangle in OpenGL 1.x, OpenGL 3+, and Vulcan
The learning curve has been sacrificed. It's now a learning cliff for everything. We've used to have computers that make it simple to do simple things and hard to do complex things. Now, just so it can be slightly less hard to do complex things, we've made it hard to learn and do simple things.
1: https://twitter.com/sol_hsa/status/1174233868536356866 https://twitter.com/sol_hsa/status/1174233868536356866
- surajrmal 5y agoIn the case of graphics, the only thing that's changed is the abstraction layer which is stable. Most folks won't use Vulkan directly, but rather through a layer which they have control to optimize or fix bugs in if they need to. Learning graphics programming will never start directly with Vulkan programming. I suppose there are benefits to make the standard, stable API easy to work with as a beginner, but there are plenty of great open source projects that fill that niche.
- anthk 5y agoTBH GLIDE was the Vulkan of its era.
- mdoms 5y agoI have never written for Vulkan and have only done bits and pieces of OpenGL but this can't possibly be an honest representation can it?
- seoaeu 5y agoNo, not entirely. Each version does progressively more error checking / debug output. Also the first two output a static single color triangle, while the Vulkan sample outputs a rotating triangle with different colors for each vertex.
- 323 5y agoEven conceptually using Vulkan is much more complicated. In old GL it's basically glClear, glBegin, glVertex, glVertex, glVertex, glEnd and a bit of window setup. In Vulkan you need to know what these things are: queues, command buffers, image/geometry buffers, memory locations (constant, uniform, varying), resources, bindings, shader programs, fences, swap chains, and how they all coordinate together. And until they are all properly coordinated together, you'll just be staring at a black image or just get errors.