Vulkan bindings for C3 language
- Vulkan API 1.0 - 1.4 bindings
- C3 error handling for Vulkan commands
- Auto-generated build pattern for Vulkan struct creation
Running example:
Install C3, VulkanSDK
Then run example with c3c run cube
Install VulkanSDK and add vulkan lib file path as rpath
to the run command.
Its the folder with vulkan.1.dylib
file
c3c run cube -z -rpath -z /Users/my_user/VulkanSDK/macOS/lib
Install VulkanSDK
Choosing wayland or X11 can be done with feature tag inside C3 project.json
"features": ["WAYLAND"]
"features": ["X11"]
GLTF examples can be found [here](https://github.com/tonis2/vulkan-gltf)
### Building bindings
run `sh build.sh`
or just `c3c run build` and manually download Vulkan specs from [here](https://raw.githubusercontent.com/KhronosGroup/Vulkan-Docs/main/xml/vk.xml)