A minimalist implementation of the "hello triangle" in C++ using Vulkan-hpp. Supports Windows & Android.
For whoever is learning vulkan by following the vulkan-tutorial and wants to quickly check the Vulkan-hpp equivalent code, this is for you.
And with no surprises, most of the vulkan logic was based on that tutorial.
Highlights:
- C++ first (e.g. avoided Java where possible)
- Terminal friendly with no need to resort to IDEs like Visual Studio
- Modern and clean CMake
- Some inline comments explaining vulkan code
- Android support with clutter free gradle files
mkdir build
cd build
cmake .. -G Ninja # add "-DCMAKE_BUILD_TYPE=Release" for release mode
ninja
Note: For MSVC, these commands need to be run within a Developer Command Prompt.
Open Android Studio, Sync Project and then press make.
On the terminal:
cd android
gradlew assembleDebug
- SDL 2 (for Window management)
- CMake 3.16.0
- Vulkan SDK
- C++ Compiler (e.g. MSVC or clang)
- Ninja or other build system such as Visual Studio
- Android Studio / Android SDK and NDK