Skip to content

tonis2/Vulkan.c3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Vulkan bindings for C3 language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages