GitXplorerGitXplorer
e

mach-glfw-vulkan-example

public
45 stars
10 forks
0 issues

Commits

List of commits on branch main.
Verified
6c74c2b13c670b8dac77ed08d9b1f0ac240e3658

README: update

eemidoots committed 10 months ago
Unverified
a0cdd042f5b33ad4fc0b52e30818476767abde08

Update for the latest mach-glfw version

ccastholm committed a year ago
Unverified
688f2b1aea9d977703113ea42a55f0552085cb9f

all: update dependencies

wwrench-bot committed a year ago
Unverified
43bebd7756799f47ecbc9495665afcc56ea97929

update zig and dependencies version

aalichraghi committed a year ago
Verified
bcfd168b775218bb6af766d8e0535c8bbfaedf25

load the instance proc addr from vkb instead of the loader (#12)

CCodesOtakuYT committed 2 years ago
Verified
c80fcf4a63dd10dd226870cf5e5ad39e4ce0a3cb

Use vk.PfnGetInstanceProcAddr instead of inlining it (#11)

CCodesOtakuYT committed 2 years ago

README

The README file for this repository.

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.