Skip to content

slimsag/mach-glfw-vulkan-example

mach-glfw Vulkan example

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.

Getting started

Install the Vulkan SDK

You must install the LunarG Vulkan SDK: https://vulkan.lunarg.com/sdk/home

Clone the repository and dependencies

git clone https://github.com/hexops/mach-glfw-vulkan-example

cd mach-glfw-vulkan-example

Ensure glslc is on your PATH

On MacOS, you may e.g. place the following in your ~/.zprofile file:

export PATH=$PATH:$HOME/VulkanSDK/1.3.280.0/macOS/bin/

Run the example

zig build run

Cross compilation

Vulkan requires a fairly heavy-weight SDK, at this time cross compilation is not possible.

About

mach-glfw Vulkan example

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published