A Vulkan Module for Jai
Just a module to use Vulkan in Jai. Both the header and the loader are generated from vk.xml by the code in this repository.
Header
Not much to say about the header. It should just pick up the types from vk.xml and try to format them in Jai with some hopefully useful comments.
Loader
There are instructions for usage of the loader in the file itself. It defines globals that will hold the procedure pointers to the API procedures. Then by using the three load_vulkan_* procedures you'll be able to fill all these global procedure pointers and start using them.
Notes
- I have only been able to test this on Windows so far. Should be fairly simple to test on other platforms and modify the header/loader if required. Any problems you encounter please report here in an issue or contact me. The current example also has only been done in Windows, even though the platform specific code is mainly limited to creating a surface and should be easy to shape to your platform. This will be looked at.
License
I want people to be able to just use this without thinking about licensing, although give me a shout if you do use it and attribution is appreciated