This is a playground to experiment with the vulkan api in zig. currently it is drawing a triangle.
Easiest ist to spawn the nix shell, which includes all dependencies.
nix-shell
within the shell, run the application
zig build run
or, alternativly, run the application and debug print the vulkan api calls
VK_INSTANCE_LAYERS=VK_LAYER_LUNARG_api_dump zig build run
Alternatively, use vkconfig
for more fine grained layers config.
More verbose moltenVK logging
MVK_CONFIG_LOG_LEVEL=2 zig build run
In order to (re-)generate the c bindings, run
zig build -Dgenerate-bindings