Skip to content

hucancode/vulkan-c3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vulkan C3 Binding

This is a Vulkan binding for C3. On the details of how to include this library in your project, see vulkan.c3l

Installation

Manual

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

Nix

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

Running

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.

About

Vulkan binding for C3 language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published