Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Vulkan-Hpp has a module interface file[1] that just exports a bunch of `using` declarations. The speedup is significant, because the Vulkan-Hpp headers are immense: `vulkan_structs.hpp`[2] is 116000+ lines on its own.

With the module, the giant list of names is compiled once into a large file, and then imported into consumers as necessary.

[1]: https://github.com/KhronosGroup/Vulkan-Headers/blob/main/inc...

[2]: https://github.com/KhronosGroup/Vulkan-Headers/blob/main/inc...



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: