r/programming • • Feb 16 '16

KHRONOS just released Vulkan

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

386 comments sorted by

View all comments

188

u/sprunth Feb 16 '16

NVidia also put up a C++ API here

105

u/[deleted] Feb 16 '16

[removed] — view removed comment

104

u/quarkman Feb 16 '16 edited Feb 18 '16

Because the API constant shorthands for Vulkan are VK_*. Look at the OpenGL spec. You'll see GL_, NV_, EXT_, GL_EXT_, etc... all over the place.

Why _cpp.h? Because Nvidia naming conventions most likely don't allow for the .hpp extension to keep the whole codebase consistent. It's common for large companies to use a very restricted naming convention.

Edit for formatting.

2

u/Godd2 Feb 18 '16

You can escape asterisks in comments with a backslash so that there isn't intermittent italicization.

\*a\*b\*c\* -> *a*b*c*

whereas

*a*b*c* -> abc

1

u/quarkman Feb 18 '16

Thanks for the tip. _ needs to be escaped as well.

86

u/3669d73f6c3ba0229192 Feb 16 '16

Yeah at that point they might as well just have called it robert.h

37

u/[deleted] Feb 16 '16

Why the hell didn't they?

148

u/Sydonai Feb 16 '16

Because then Github would have sent them C&D letters for using gendered file names. /s

5

u/doenietzomoeilijk Feb 17 '16

I won't lie, that made me smile.

→ More replies (3)
→ More replies (2)