r/programming • • Feb 16 '16

KHRONOS just released Vulkan

https://www.khronos.org/vulkan/
2.2k Upvotes

386 comments sorted by

View all comments

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.

115

u/lubosz Feb 16 '16

27

u/tyronrex Feb 16 '16

Wow, almost 800 lines of code just to draw a triangle, looks like this API is quite low level and will probably be more work compared to OpenGL.

https://github.com/SaschaWillems/Vulkan/blob/master/triangle/triangle.cpp

4

u/menace-official Feb 17 '16 edited Feb 17 '16

Well obviously we need to create a graphics layer between Vulkan and the developer. But be sure to make it open standard.

EDIT: source to standard

3

u/dobkeratops Feb 17 '16

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?

1

u/Andallas Feb 17 '16

Having a hard time finding it (will update if I do) but I just read something yesterday (from Khronos group) stating that basically any kind of OpenGL on Vulkan would either not work, or be too slow, because the architectures are so different.

→ More replies (3)