This fork simplifies running the original Vulkan tutorial. You can execute everything with just a few commands or by using the all_in_one_click.bat
file.
Follow the steps below to set up and run the project:
- Git: Download Git for Windows
- CMake: Download CMake
- Visual Studio: Ensure it's installed for building the project.
Download and install the Vulkan SDK with the following commands:
curl -O https://sdk.lunarg.com/sdk/download/1.3.290.0/windows/VulkanSDK-1.3.290.0-Installer.exe
VulkanSDK-1.3.290.0-Installer.exe --accept-licenses --default-answer --confirm-command install
Add the necessary third-party packages as submodules by running:
git submodule add https://github.com/glfw/glfw.git external/glfw
git submodule add https://github.com/g-truc/glm.git external/glm
git submodule add https://github.com/tinyobjloader/tinyobjloader.git external/tinyobjloader
git submodule add https://github.com/nothings/stb.git external/stb_image
To configure and build the project, follow these steps:
mkdir build
cmake -S ./code -B build
cmake --build build
To run the program, execute the following:
python test.py
Note: If you're using all_in_one_click.bat, you might need to run it multiple times. After installing the Vulkan SDK, the terminal needs to restart for CMake to recognize the Vulkan environment variables.