This repositry contains the basic Vulkan examples and tutorials based on the Vulkan Tutorial.
In this repositry, I have used SDL3 for window creation and input handling instead of GLFW, which is used in the original tutorial. The code is also updated to use C++23 features and the latest Vulkan API.
- A C++ compiler that supports C++23 or later.
- CMake 3.30 or later.
- Vulkan SDK installed. You can download it from LunarG.
- A graphics card that supports Vulkan.
It is recommended to install SDL3 to your system to run the examples. If cmake cannot find SDL3, it will download and build SDL3 automatically.
-
Clone this repository:
git clone https://github.com/upiscium/VulkanTutorial.git cd VulkanTutorial -
Create a build directory (in this case, named
build):mkdir build
-
Configure the project with CMake:
cmake -S . -B build -
Build the project:
cmake --build build
-
Run the examples: Run the desired example executable. For example to run the "Hello Triangle" example:
cd build ./build/chapter4
This project is licensed under the BSD3-Clause License. See the LICENSE file for details
- The original Vulkan Tutorial by Alexander Overvoorde.
- The Vulkan SDK provided by LunarG.
For any questions or suggestions, please open an issue in this repository.