procedural-3d-engine/android
2016-11-27 13:44:10 +01:00
..
bloom Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
computecullandlod Added Android build files fro compute cull and lod example 2016-10-09 17:45:21 +02:00
computenbody Added compute N-Body Android build files 2016-11-27 13:44:10 +01:00
computeparticles Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
computeshader Use Vulkan result check macro, code cleanup, added text overlay 2016-05-23 21:22:00 +02:00
debugmarker Added debug marker example to android builds 2016-06-06 14:27:48 +02:00
deferred Updated android build file for deferred shading example 2016-07-04 20:54:00 +02:00
deferredshadows Added Android build for deferred shadow example 2016-07-18 20:54:11 +02:00
displacement Updated displacement example 2016-06-06 14:28:13 +02:00
distancefieldfonts Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
gears Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
geometryshader Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
images Removed old android images, small change to build.bat (#97) 2016-03-25 21:14:00 +01:00
indirectdraw Added Android build files for indirect draw example 2016-08-04 18:50:53 +02:00
instancing Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
mesh Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
multisampling Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
multithreading Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
occlusionquery Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
offscreen Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
parallaxmapping Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
particlefire Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
pipelines Removed no longer used textures 2016-05-26 19:57:37 +02:00
pushconstants Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
radialblur Fold layout transitions into subpass (Refs #155), refactoring of offscreen render pass 2016-08-13 18:38:13 +02:00
raytracing Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
scenerendering Added resources and android build for scene rendering example 2016-06-12 17:42:35 +02:00
shadowmapping Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
shadowmappingomni Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
skeletalanimation Skeletal animation example shaders, code cleanup, etc. 2016-10-30 18:13:49 +01:00
sphericalenvmapping Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
ssao Added Android build files and seettings for SSAO example 2016-10-30 13:49:30 +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 Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
texture3d Decoupled noise generation from 3D texture setup, added Android build files 2016-09-10 20:49:14 +02:00
texturearray Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
texturecubemap Added text overlay to cubemap sample, multiple objects, optimizations 2016-06-04 11:03:17 +02:00
texturemipmapgen Use 6 sided tunnel for better visualization of different texture filters 2016-09-13 20:55:20 +02:00
triangle Request host coherent memory types for index and vertex staging buffers (Fixes #203), example uses own getMemoryTypeIndex function for clarification, enabled exceptions for Android build 2016-07-18 20:32:25 +02:00
vulkanscene Copy base shaders for Android builds 2016-05-15 13:22:37 +02:00
_build.bat Added multi threading example to cmake and android build 2016-04-02 12:08:19 +02:00
_setup.bat Updated to Android API Level 23 2016-07-19 22:06:19 +02:00
build-all.bat Added compute N-Body Android build files 2016-11-27 13:44:10 +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 Added compute N-Body Android build files 2016-11-27 13:44:10 +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.