This is a Vulkan binding for C3
.
On the details of how to include this library in your project, see vulkan.c3l
To build example program we need
If you are on Arch Linux you can install them all using
sudo pacman -S c3c glfw vulkan-devel
Alternately you can use Nix to simplify the installation process and keep your system clean. On Mac there is still a need to install Vulkan SDK manually. After install Nix, run the following command to enter development environment
nix develop
First compile GLSL shader to SPIRV if you haven't done so
glslc -c src/shaders/shader.frag -o src/shaders/frag.spv
glslc -c src/shaders/shader.vert -o src/shaders/vert.spv
Simply run c3c run
to run the program.