procedural-3d-engine/android
2017-11-12 14:19:01 +01:00
..
bloom Removed per-sample android build files 2017-11-04 10:59:56 +01:00
computecloth Removed per-sample android build files 2017-11-04 10:59:56 +01:00
computecullandlod Removed per-sample android build files 2017-11-04 10:59:56 +01:00
computeheadless Removed per-sample android build files 2017-11-04 10:59:56 +01:00
computenbody Removed per-sample android build files 2017-11-04 10:59:56 +01:00
computeparticles Removed per-sample android build files 2017-11-04 10:59:56 +01:00
computeshader Removed per-sample android build files 2017-11-04 10:59:56 +01:00
debugmarker Removed per-sample android build files 2017-11-04 10:59:56 +01:00
deferred Removed per-sample android build files 2017-11-04 10:59:56 +01:00
deferredmultisampling Removed per-sample android build files 2017-11-04 10:59:56 +01:00
deferredshadows Removed per-sample android build files 2017-11-04 10:59:56 +01:00
displacement Removed per-sample android build files 2017-11-04 10:59:56 +01:00
distancefieldfonts Removed per-sample android build files 2017-11-04 10:59:56 +01:00
dynamicuniformbuffer Removed per-sample android build files 2017-11-04 10:59:56 +01:00
gears Removed per-sample android build files 2017-11-04 10:59:56 +01:00
geometryshader Removed per-sample android build files 2017-11-04 10:59:56 +01:00
hdr Removed per-sample android build files 2017-11-04 10:59:56 +01:00
images Removed old android images, small change to build.bat (#97) 2016-03-25 21:14:00 +01:00
imgui Removed per-sample android build files 2017-11-04 10:59:56 +01:00
indirectdraw Removed per-sample android build files 2017-11-04 10:59:56 +01:00
instancing Removed per-sample android build files 2017-11-04 10:59:56 +01:00
layers Update notes on android builds, added info about validation layer builds 2017-06-17 11:32:20 +02:00
mesh Removed per-sample android build files 2017-11-04 10:59:56 +01:00
multisampling Removed per-sample android build files 2017-11-04 10:59:56 +01:00
multithreading Removed per-sample android build files 2017-11-04 10:59:56 +01:00
occlusionquery Removed per-sample android build files 2017-11-04 10:59:56 +01:00
offscreen Removed per-sample android build files 2017-11-04 10:59:56 +01:00
parallaxmapping Removed per-sample android build files 2017-11-04 10:59:56 +01:00
particlefire Removed per-sample android build files 2017-11-04 10:59:56 +01:00
pbrbasic Removed per-sample android build files 2017-11-04 10:59:56 +01:00
pbribl Removed per-sample android build files 2017-11-04 10:59:56 +01:00
pbrtexture Removed per-sample android build files 2017-11-04 10:59:56 +01:00
pipelines Removed per-sample android build files 2017-11-04 10:59:56 +01:00
pipelinestatistics Added pipeline statistics query example 2017-11-12 14:19:01 +01:00
pushconstants Removed per-sample android build files 2017-11-04 10:59:56 +01:00
radialblur Removed per-sample android build files 2017-11-04 10:59:56 +01:00
raytracing Removed per-sample android build files 2017-11-04 10:59:56 +01:00
renderheadless Removed per-sample android build files 2017-11-04 10:59:56 +01:00
scenerendering Removed per-sample android build files 2017-11-04 10:59:56 +01:00
shadowmapping Removed per-sample android build files 2017-11-04 10:59:56 +01:00
shadowmappingomni Removed per-sample android build files 2017-11-04 10:59:56 +01:00
skeletalanimation Removed per-sample android build files 2017-11-04 10:59:56 +01:00
specializationconstants Removed per-sample android build files 2017-11-04 10:59:56 +01:00
sphericalenvmapping Removed per-sample android build files 2017-11-04 10:59:56 +01:00
ssao Removed per-sample android build files 2017-11-04 10:59:56 +01:00
stencilbuffer Removed per-sample android build files 2017-11-04 10:59:56 +01:00
subpasses Removed per-sample android build files 2017-11-04 10:59:56 +01:00
templates Added android build file templates 2017-11-04 11:00:17 +01:00
terraintessellation Removed per-sample android build files 2017-11-04 10:59:56 +01:00
tessellation Removed per-sample android build files 2017-11-04 10:59:56 +01:00
textoverlay Removed per-sample android build files 2017-11-04 10:59:56 +01:00
texture Removed per-sample android build files 2017-11-04 10:59:56 +01:00
texture3d Removed per-sample android build files 2017-11-04 10:59:56 +01:00
texturearray Removed per-sample android build files 2017-11-04 10:59:56 +01:00
texturecubemap Removed per-sample android build files 2017-11-04 10:59:56 +01:00
texturemipmapgen Removed per-sample android build files 2017-11-04 10:59:56 +01:00
triangle Removed per-sample android build files 2017-11-04 10:59:56 +01:00
vulkanscene Removed per-sample android build files 2017-11-04 10:59:56 +01:00
build-all.py Added missing samples to build scripts 2017-11-04 16:37:52 +01:00
build.py Dynamically generate android build files from build script 2017-11-04 11:00:38 +01:00
cleanup.bat Added missing samples to build scripts 2017-11-04 16:37:52 +01:00
README.md Allow Linux users to build Android even if Python 2 is their default Python 2017-10-26 17:09:59 +01:00
uninstall-all.py Added missing samples to build scripts 2017-11-04 16:37:52 +01:00

Vulkan examples on Android

Vulkan on Android

Since Vulkan is not yet part of the Android OS (like OpenGL ES) the library and function pointers need to be dynamically loaded before using any of the Vulkan functions. See the vulkanandroid.h and vulkanandroid.cpp files in the base folder of the repositoy root for how this is done.

Device support

  • To run these examples you need a device with an Android image that suports Vulkan
  • Builds currently only support arm-v7, x86 may follow at a later point
  • Android TV leanback launcher is supported, so the examples will show up on the launcher
  • Basic gamepad support is available too (zoom and rotate)
  • Basic touch control support (zoom, move, rotate, look)

Building

Requirements

  • Android NDK r11b (or newer) - Somewhere in your search path
  • Examples are built against API level 23 (requires the SDK Platform installed)
  • Python 3.x

Building the Examples

Grab Externals

Make sure all submodules have been cloned using the steps from main README.

Complete set

Please note that building (and deploying) all examples may take a while

Build only

build-all.py

This will build all apks and puts them into the bin folder.

Build and deploy

build-all.py -deploy

This will build all apks and deploys them to the currently attached android device.

Single examples

These are for building and/or deploying a single example.

Build only

Call build(.bat) with the name of the example to build, e.g. :

build.py pbrtexture

This will build the apk for the triangle example and puts it into the bin folder.

Build and deploy

build.py pbrtexture -deploy

This will build the apk for the triangle example and deploys it to the currently attached android device.

Validation layers

build.py pbrtexture -validation (-deploy)

Builds the apk, adds the validation layer libraries and enables validation via a compiler define.

Note: You need to manually build the validation layers and put them in the proper folder. If the libaries are not present they won't be included with the apk and running the app will fail.

Removing

A single file for removing all installed examples is provided in case you installed all of them and don't want to remove them by hand (which is especially tedious on Android TV).

uninstall-all.py

This will remove any installed Android example from this repository from the attached device.