Notes on Developing Vulkan on Mac
Setup environment on MacOS First, install the Vulkan SDK. I recommend downloading the latest version from the LunarG website. The default install path is usually /Users/$USER/VulkanSDK/version-number. The SDK includes a script named setup-env.sh for setting environment variables, so you need to run it every time your shell starts. Open your shell config file, such as /.zshrc for zsh or /.bash_profile for bash, and add the following line. This gives every new shell session the corresponding Vulkan environment variables, and CMake can also find Vulkan through find_package. # Note: replace this path with your actual VulkanSDK installation path source /Users/USER/VulkanSDK/1.3.xxx.x/setup-env.sh MoltenVK Apple’s native graphics API is Metal, and there is no native Vulkan implementation on macOS. So you need MoltenVK to translate Vulkan calls into Metal calls. If you installed the Vulkan SDK, MoltenVK is already included. One extra thing to watch out for: when creating Vulkan-related contexts, there are three places you need to configure. ...