procedural-3d-engine/android
2017-03-17 18:38:25 +01:00
..
bloom Android build files [skip ci] 2017-03-15 21:21:25 +01:00
computecullandlod Android build files 2017-03-12 13:40:50 +01:00
computenbody Android build files 2017-03-12 13:40:50 +01:00
computeparticles Android build files 2017-03-12 13:40:50 +01:00
computeshader Android build files 2017-03-12 13:40:50 +01:00
debugmarker Android build files [skip ci] 2017-03-15 21:21:25 +01:00
deferred Added ETC2 and ASTC texture variants (Refs #174) 2017-03-11 11:25:41 +01:00
deferredmultisampling Android build files for deferred multisampling 2017-03-11 12:13:42 +01:00
deferredshadows Added ETC2 and ASTC texture variants (Refs #174) 2017-03-11 11:39:05 +01:00
displacement Added ETC2 and ASTC texture variants (Refs #174), check device features 2017-03-17 18:21:15 +01:00
distancefieldfonts Android build files [skip ci] 2017-03-15 21:21:25 +01:00
dynamicuniformbuffer Updated android build files 2017-03-12 11:49:55 +01:00
gears Updated android build files 2017-03-12 11:49:55 +01:00
geometryshader Android build files [skip ci] 2017-03-15 21:21:25 +01:00
hdr Added Android build for HDR example [skip ci] 2017-01-31 20:20:58 +01:00
images Removed old android images, small change to build.bat (#97) 2016-03-25 21:14:00 +01:00
indirectdraw Added ETC2 and ASTC texture variants (Refs #174) 2017-03-12 12:07:56 +01:00
instancing Added ETC2 and ASTC texture variants (Refs #174) 2017-03-12 12:30:17 +01:00
mesh Added ETC2 and ASTC texture variants (Refs #174), only enable wireframe if non solid fillmode is supported by the device 2017-03-08 21:31:29 +01:00
multisampling Added ETC2 and ASTC texture variants (Refs #174) 2017-03-12 12:44:37 +01:00
multithreading Android build files 2017-03-12 12:50:19 +01:00
occlusionquery Android build files and manifests [skip ci] 2017-03-14 20:50:37 +01:00
offscreen Android build files and manifests [skip ci] 2017-03-14 20:50:37 +01:00
parallaxmapping Added ETC2 and ASTC texture variants (Refs #174) 2017-03-17 18:38:25 +01:00
particlefire Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
pbrbasic Android build files and manifests [skip ci] 2017-03-14 20:50:37 +01:00
pbribl Android build files and manifests [skip ci] 2017-03-14 20:50:37 +01:00
pipelines Check device features (only build non solid pipelines if feature available), use phyton script for Android build 2017-03-09 20:36:51 +01:00
pushconstants Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
radialblur Android build files [skip ci] 2017-03-15 21:21:25 +01:00
raytracing Android build files and manifests [skip ci] 2017-03-14 20:50:37 +01:00
scenerendering Fixed Android build file 2017-03-15 20:39:06 +01:00
shadowmapping Android build files [skip ci] 2017-03-15 21:21:25 +01:00
shadowmappingomni Android build files [skip ci] 2017-03-15 21:21:25 +01:00
skeletalanimation Skeletal animation example shaders, code cleanup, etc. 2016-10-30 18:13:49 +01:00
specializationconstants Android build files [skip ci] 2017-03-15 21:21:25 +01:00
sphericalenvmapping Android build files [skip ci] 2017-03-15 21:21:25 +01:00
ssao Android build files [skip ci] 2017-03-15 21:21:25 +01:00
subpasses Android build files [skip ci] 2017-03-15 21:21:25 +01:00
terraintessellation Use 16-bit single channel heightmap for terrain displacement 2016-06-24 20:59:56 +02:00
tessellation Updated PN-Triangles tessellation shader demo 2016-05-21 16:01:48 +02:00
textoverlay Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
texture Updated Android manifest [skip ci] 2017-03-10 14:08:54 +01:00
texture3d Updated Android manifest and build files [skip ci] 2017-03-10 14:05:14 +01:00
texturearray Added ETC2 and ASTC texture variants (Refs #174) 2017-03-10 15:20:08 +01:00
texturecubemap Android build files 2017-03-15 20:09:26 +01:00
texturemipmapgen Android build files 2017-03-15 20:09:26 +01:00
triangle Updated android build files 2017-03-12 10:52:09 +01:00
vulkanscene Android build files 2017-03-15 20:09:26 +01:00
_build.bat Added subpass example Android build [skip ci] 2017-01-14 17:14:09 +01:00
_setup.bat Updated to Android API Level 23 2016-07-19 22:06:19 +02:00
build-all.bat Android build files for deferred multisampling 2017-03-11 12:13:42 +01:00
build.bat Added android support for gears, geometryshader, instancing and occlusion query examples (#97) 2016-03-25 19:43:01 +01:00
cleanup.bat Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
install-all.bat Streamlined Android build process and install/uninstall batch files (#97) 2016-03-26 11:49:37 +01:00
README.md Updated to Android API Level 23 2016-07-19 22:06:19 +02:00
uninstall-all.bat Android build files for deferred multisampling 2017-03-11 12:13:42 +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)
  • Touch controls are not yet implemented, same for screen rotations

Building

Requirements

  • Android NDK r11b (or newer) - Somewhere in your search path
  • Examples are built against API level 23 (requires the SDK Platform installed)
  • Batch files for building are provided for windows only, with linux to be added at some point

Building the Examples

Complete set

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

Build only

build-all

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

Build and deploy

install-all

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 triangle

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

Build and deploy

build triangle -deploy

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

Removing

A batch 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

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