This guide is meant for Computer Graphics students that own ARM-based Macs.
This guide assumes that you will use the command line and a simple text editor (like nano, Neovim, VS Code...), not a fully-fledged IDE.
- Follow the tutorial provided in the PDF for the first assignment until the section "Setting up Xcode".
- Go to the install folder of VulkanSDK (usually
~/VulkanSDK
), specifically to the path:~/VulkanSDK/<vulkan version>
- Run the install script via this command:
sudo python3 install_vulkan.py
- Edit your
.zshrc
and add the following line:export DYLD_LIBRARY_PATH=/Users/<your username>/VulkanSDK/1.3.275.0/macOS/lib
- Download the script
vkcompile.sh
provided with this GitHub repository and save it somewhere you can remember - Add execution permissions to the script by running this command:
chmod +x vkcompile.sh
- Alias that script in your
.zshrc
by adding the following line:alias gvk="/path/to/vkcompile.sh"
- Update your terminal configuration by running:
source ~/.zshrc
Now you should be able to compile A01.cpp
by running gvk A01.cpp
in your terminal in the directory that contains that file.
Please do let me know about any further problems by opening an issue here.