o
odinpkg.dev
packages / library / odin-vulkan

odin-vulkan

bcdb586library

Following vulkan-tutorial on Odin

0BSD · updated 1 year ago

odin-vulkan

This repo follows the Vulkan Tutorial in Odin. The main.odin file goes up to the "Swap Chain Recreation" module.

Running

From the root folder, run:

odin run main

Compiling

From the root folder, run:

odin build main -out:triangle

Make sure the folder structure looks like:

triangle
main/
    └── main.odin
    └── shaders/
        ├── simple_frag.spv
        └── simple_vertex.spv
    

Then, you can run it with:

./triangle

License

This project is licensed under the 0BSD License.