Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.03 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.03 KB

Android Vulkan Compute Demo

Examples of using the Khronos Group's Vulkan Compute API standard to perform vector addition on Android Phone Operating System.

You will need JDK, Android SDK, Android NDK and an Android device to use this.

Build and Installation

Build APK

We use Gradle to build. Please follow the installation instruction for your operating system.

Run following script to generate the apk file.

$ export ANDROID_HOME=[Path to your Android SDK, e.g., ~/Android/sdk]
$ export ANDROID_NDK_HOME=[Path to your Android NDK, e.g., ~/Android/sdk/ndk-bundle]
$ gradle clean build

Install APK

In app/build/outputs/apk/debug you'll find app-debug.apk. Upload app-debug.apk to your Android device and install it.

$ adb install -r /app/build/outputs/apk/debug/app-debug.apk
Success