Check out our Monthly Survey Page to see what our users are running.

Nvidia releases an open-source Vulkan C++ API, it's now on github

Posted by , | Views: 10,945
Nvidia have been busy, they have released vkcpp which as a C++ API to work with Vulkan, as Vulkan itself is a C API.

QuoteVulkan is a C API and as such inherits all common pitfalls of using a general C programming library. The motivation of a low-level Vulkan C++ API is to avoid these common pitfalls by applying commonly known C++ features while keeping the overall structure of a Vulkan program and preserving the full freedom it provides as low-level graphics API. An additional guideline we followed was not to introduce additional runtime overhead by providing a header-only library with inline functions.


Since I know very little about C and C++ I will leave the main discussion about it to the comments! I hope someone finds it useful with me giving it a shout-out. It's fantastic to see lots of tools being thrown out for Vulkan already!

Find the vkcpp github here. Article taken from GamingOnLinux.com.
0 Likes
We do often include affiliate links to earn us some pennies. We are currently affiliated with GOG, Humble Store and Paradox Interactive. See more information here.
About the author -
I am the owner of GamingOnLinux. After discovering Linux back in the days of Mandrake in 2003, I constantly came back to check on the progress of Linux until Ubuntu appeared on the scene and it helped me to really love it. You can reach me easily by emailing GamingOnLinux directly.
See more from me
The comments on this article are closed.
Pecisk 16 February 2016 at 9:15 pm UTC
That's actually nice, as majority of games are developed either in C++, or managed languages (which are yet to see Vulkan bindings, but I will guess that's not that important, as mostly engines, which are C or C++, will use them).
neowiz73 16 February 2016 at 10:43 pm UTC
oh my ,this should help with Mir and Wayland when it comes to Nvidia support. it is a basic low level API. but can be expanded on. at least it's on github so more can contribute to it's code.
Pecisk 16 February 2016 at 10:57 pm UTC
neowiz73oh my ,this should help with Mir and Wayland when it comes to Nvidia support. it is a basic low level API. but can be expanded on. at least it's on github so more can contribute to it's code.

Wayland has their support already completed, it was pushed up in Wayland git master.
STiAT 17 February 2016 at 10:28 am UTC
neowiz73oh my ,this should help with Mir and Wayland when it comes to Nvidia support. it is a basic low level API. but can be expanded on. at least it's on github so more can contribute to it's code.

Neither Mir nor Wayland will care a lot for a C++ API, they're both C and will very likely use the C API. Engine creators who develop their engine in C++ (still many are written in C) will probably like this wrapper API.
Creak 17 February 2016 at 12:56 pm UTC
View PC info
  • Supporter
  • Top Supporter
STiATEngine creators who develop their engine in C++ (still many are written in C) will probably like this wrapper API.

Not so sure if a lot of engines are still written in C. Maybe some pieces of it, or some external libraries, but even the 3D engines (which are often the most hardcore part of the engine) are in C++ now.
weaponx169 17 February 2016 at 2:41 pm UTC
This will be good if it is what I am thinking it is. C has a lot of "features" that don't really translate too well into C++ and visa versa. My first encounter with C in 3D graphics was a pointer arithmetic nightmare. If you already know C++, then this gives you just enough knowledge to make you dangerous with C. You think you know it but you don't and most software usually blend the two together in insane ways to make you crazy.
nifker 17 February 2016 at 6:43 pm UTC
I ask me if there will be a C Wrapper
STiAT 18 February 2016 at 12:21 am UTC
nifkerI ask me if there will be a C Wrapper

C wrapper? Vulkan A PI is in C.
While you're here, please consider supporting GamingOnLinux on Patreon, Liberapay or Paypal. We have no adverts, no paywalls, no timed exclusive articles. Just good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Livestreams & Videos
None currently, submit yours here!
See more!
Popular this week
View by Category
Contact
Latest Comments
Latest Forum Posts