Skip to content

IkeikeP/vulkan-hpp-triangle-android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vulkan-hpp Triangle for Android

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

Build

Windows

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.

Android

Open Android Studio, Sync Project and then press make.

On the terminal:

cd android
gradlew assembleDebug

Dependencies

  • SDL 2 (for Window management)

Requirements

  • 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

About

A vulkan-hpp implementation of the popular triangle.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published