Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.08 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.08 KB

Vulkan.c3

Vulkan bindings for C3 language

Features

  • Vulkan API 1.0 - 1.4 bindings
  • C3 error handling for Vulkan commands
  • Auto-generated build pattern for Vulkan struct creation

Example

Running example: Install C3, VulkanSDK Then run example with c3c run cube


Running with vulkan on macOS

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

Running vulkan on linux

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)