Loading repository data…
Loading repository data…
SnapdragonGameStudios / repository
This repository contains a Vulkan Framework designed to enable developers to get up and running quickly for creating sample content and rapid prototyping. It is designed to be easy to build and have the basic building blocks needed for creating an Android APK with Vulkan functionality, input system, as well as other helper utilities for loading resources, etc.
The Adreno™ GPU Vulkan Code Sample Framework is a lightweight collection of C++ classes and sample projects to demonstrate Vulkan rendering features on the Qualcomm Snapdragon Adreno™ GPU.
Both Android and Microsoft Windows build targets are supported (some samples may require/target Qualcomm Adreno™ specific Vulkan extensions).
set JAVA_HOME=c:\Program Files\Android\Android Studio\jbrTested using WSL running Ubuntu.
Ensure CMake and python are in the Windows PATH
Ensure you have CMake and a recent version of Android SDK installed (Android Studio can install both).
Android builds require CMake version 3.25 and above, if when building Android projects gradle is throwing arrors about cmake or Android SDK/NDK versions you can override the defaults by creating project/android/local.properties and adding the location of your local Android SDK and Cmake installs eg:
In the root folder run the configuration/build script:
01_Configure.bat (source 01_Configure.sh on Linux)
Select the build targets and solutions you are interested in building (sub-menus can be opened with the 'right' arrow). Then select 'Save And Begin Processing' which:
ConfigLocal.cmake / ConfigLocal.properties).01_Configure.bat can be used to re-run builds after changes.
Alternately the Windows solution can be used to make changes and re-build Windows targets - project\windows\solution\SampleFramework.sln - project\windowsArm64\solution\SampleFramework.sln and Android builds can be re-ran with - project\android\build.bat
If desired you can also open/build the SampleFramework using Android Studio. In Android Studio open the project/android folder (initial load of the projects takes a while, subsequent opens are fast). Using Android Studio to build is untested and not supported! If you are having problems building framework samples please test using the batch file build scripts before opening any support requests.
See the Samples folder for instructions on building assets and running individual samples.
Most samples also support a configuration file (app_config.txt) placed in the base of the sample's directory (Windows) or pushed loose to the sample's install folder (Android).
Android apk are written to build\android\<samplename>\outputs\apk\debug\.
Config files may be pushed to the device using the sample/<samplename>/install_config.bat script provided, if available.
Most sample apks can be installed with the sample/<samplename>/install_apk.bat script provided, if available.
If the Android apk was correctly built (see note above about binary assets) it can be installed with apk install <apk> and run from Android.
Executables are written to project\windows\solution\samples\<samplename>\debug\ or project\windowsArm64\solution\samples\<samplename>\debug\.
When running sample executables from command line ensure you are running from the relevant sample directory (not the location of the built exe). The Visual Studio solution is already configured to launch samples from the correct directory.
Adreno™ GPU Vulkan Code Sample Framework is licensed under the BSD 3-clause “New” or “Revised” License. Check out the LICENSE for more details.