This is an example for how to use mach-glfw and vulkan-zig together to create a basic Vulkan window.
This is nearly a 1:1 copy of the vulkan-zig example by @snektron, the only difference is using mach-glfw.
You must install the LunarG Vulkan SDK: https://vulkan.lunarg.com/sdk/home
git clone --recurse-submodules https://github.com/hexops/mach-glfw-vulkan-example
On MacOS, you may e.g. place the following in your ~/.zprofile
file:
export PATH=$PATH:$HOME/VulkanSDK/1.2.189.0/macOS/bin/
zig build run
At this time, cross compilation is not possible due to the Vulkan SDK requirement. We're working on this.