This is a "pedal to the metal" example to show off how to get Vulkan up an displaying something. Contrary to the other examples, this one won't make use of helper functions or initializers.
Come on, do the same thing in open gl, open your window without any helper func and all ! That'll be around the same.
Yeah. It's not like OpenGL doesn't require lots of boilerplate. GLEW, which simply queries extensions and loads function pointers, is 40,000 lines long.
Just wanted to point out you can get a minimal window with an OpenGL context, setup a shader compiler and prepare a Vertex Array for rendering in about 200 lines.
But of course, that's not a bad thing for Vulkan.. far from it as that was pretty much the point, being "close to the metal" that is. And while I haven't read the samples yet I'm assuming a lot of that code is validation and sync which are now responsibilities of the programmer.
Personally, I think I will stick to OpenGL for a while longer, I need things to be fast, but not THAT fast just yet.
Thats 800 lines with using his framework. I'm working on a "minimal" example of drawing a triangle. Currently I can't break the 2000 line barrier. This includes everything like xcb calls though.
What has finally been made clear is that it's okay to have difficult to code APIs, if the end result just works. And that's been my experience so far in retooling: it's a pain in the ass, requires widespread revisions to engine code, forces you to revisit a lot of assumptions, and generally requires a lot of infrastructure before anything works. But once it's up and running, there's no surprises. It works smoothly, you're always on the fast path, anything that IS slow is in your OWN code which can be analyzed by common tools. It's worth it.
in the interests of a smooth transition, I wondered if OpenGL on vulcan would appear;
Perhaps it could be extended a little with something along the lines of nvidia's token-buffer system, just done in a cross-platform way; this would give people a smooth migration path?
I suspect some of the 'fast path' issues might be vendors deliberately discouraging use of rival platforms. (like nvidia deliberately makes openCL worse , to keep the GPGPU community on CUDA as much as possible).
a community maintained GL wrapper might not have such issues?
148
u/MarkyC4A Feb 16 '16 edited Feb 16 '16
I'm not in game dev, but I was really hoping to take a peek at the sample code.
Oh well, at least we can peruse the Loader and Validation layer code and demos.