procedural-3d-engine/android
2016-03-25 21:53:09 +01:00
..
bloom Update android application labels (#97) 2016-03-25 15:40:55 +01:00
computeparticles Update android application labels (#97) 2016-03-25 15:40:55 +01:00
computeshader Update android application labels (#97) 2016-03-25 15:40:55 +01:00
deferred Update android application labels (#97) 2016-03-25 15:40:55 +01:00
displacement Added android support for deferred, displacement and spherical environment mapping examples (#97) 2016-03-25 14:12:17 +01:00
distancefieldfonts Added android support for distance field fonts example (#97) Fixes (#109) 2016-03-25 21:53:09 +01:00
gears Added android support for gears, geometryshader, instancing and occlusion query examples (#97) 2016-03-25 19:43:01 +01:00
geometryshader Added android support for gears, geometryshader, instancing and occlusion query examples (#97) 2016-03-25 19:43:01 +01:00
images Removed old android images, small change to build.bat (#97) 2016-03-25 21:14:00 +01:00
instancing Added android support for gears, geometryshader, instancing and occlusion query examples (#97) 2016-03-25 19:43:01 +01:00
mesh Update android application labels (#97) 2016-03-25 15:40:55 +01:00
occlusionquery Added android support for gears, geometryshader, instancing and occlusion query examples (#97) 2016-03-25 19:43:01 +01:00
offscreen Update android application labels (#97) 2016-03-25 15:40:55 +01:00
parallaxmapping Added android support for parallax mapping, pipelines, push constants, radial blur, skeletal animation and tessellation examples (#97) 2016-03-25 21:08:59 +01:00
particlefire Update android application labels (#97) 2016-03-25 15:40:55 +01:00
pipelines Added android support for parallax mapping, pipelines, push constants, radial blur, skeletal animation and tessellation examples (#97) 2016-03-25 21:08:59 +01:00
pushconstants Added android support for parallax mapping, pipelines, push constants, radial blur, skeletal animation and tessellation examples (#97) 2016-03-25 21:08:59 +01:00
radialblur Added android support for parallax mapping, pipelines, push constants, radial blur, skeletal animation and tessellation examples (#97) 2016-03-25 21:08:59 +01:00
shadowmapping Added android support for shadow mapping (projected and omni) and texture (array and cubemap ) example (#97) 2016-03-25 15:29:38 +01:00
shadowmappingomni Added android support for shadow mapping (projected and omni) and texture (array and cubemap ) example (#97) 2016-03-25 15:29:38 +01:00
skeletalanimation Added android support for parallax mapping, pipelines, push constants, radial blur, skeletal animation and tessellation examples (#97) 2016-03-25 21:08:59 +01:00
sphericalenvmapping Added android support for deferred, displacement and spherical environment mapping examples (#97) 2016-03-25 14:12:17 +01:00
tessellation Added android support for parallax mapping, pipelines, push constants, radial blur, skeletal animation and tessellation examples (#97) 2016-03-25 21:08:59 +01:00
texture Update android application labels (#97) 2016-03-25 15:40:55 +01:00
texturearray Added android support for shadow mapping (projected and omni) and texture (array and cubemap ) example (#97) 2016-03-25 15:29:38 +01:00
texturecubemap Added android support for shadow mapping (projected and omni) and texture (array and cubemap ) example (#97) 2016-03-25 15:29:38 +01:00
triangle Update android application labels (#97) 2016-03-25 15:40:55 +01:00
vulkanscene Android builds (#97) 2016-03-25 16:41:44 +01:00
_build.bat Removed old android images, small change to build.bat (#97) 2016-03-25 21:14:00 +01:00
_setup.bat Removed deprecated separate triangle and texture demos, replaced with android build files (wip) (#97) 2016-03-21 23:33:33 +01:00
build-all.bat Android builds (#97) 2016-03-25 16:41:44 +01:00
build-bloom.bat Added android support for bloom, computeshader and offscreen examples (#97) 2016-03-24 23:07:14 +01:00
build-computeparticles.bat Android support for Compute particles example, replacing separate Android version (#97) 2016-03-23 22:17:14 +01:00
build-computeshader.bat Added android support for bloom, computeshader and offscreen examples (#97) 2016-03-24 23:07:14 +01:00
build-deferred.bat Added android support for deferred, displacement and spherical environment mapping examples (#97) 2016-03-25 14:12:17 +01:00
build-displacement.bat Added android support for deferred, displacement and spherical environment mapping examples (#97) 2016-03-25 14:12:17 +01:00
build-mesh.bat Android support for mesh example, some fixes for other android projects (#97) 2016-03-22 22:28:08 +01:00
build-offscreen.bat Added android support for bloom, computeshader and offscreen examples (#97) 2016-03-24 23:07:14 +01:00
build-particlefire.bat Android support for particle fire example (#97) 2016-03-23 23:02:10 +01:00
build-shadowmapping.bat Added android support for shadow mapping (projected and omni) and texture (array and cubemap ) example (#97) 2016-03-25 15:29:38 +01:00
build-shadowmappingomni.bat Added android support for shadow mapping (projected and omni) and texture (array and cubemap ) example (#97) 2016-03-25 15:29:38 +01:00
build-sphericalenvmapping.bat Added android support for deferred, displacement and spherical environment mapping examples (#97) 2016-03-25 14:12:17 +01:00
build-texture.bat Android support for mesh example, some fixes for other android projects (#97) 2016-03-22 22:28:08 +01:00
build-texturearray.bat Added android support for shadow mapping (projected and omni) and texture (array and cubemap ) example (#97) 2016-03-25 15:29:38 +01:00
build-texturecubemap.bat Added android support for shadow mapping (projected and omni) and texture (array and cubemap ) example (#97) 2016-03-25 15:29:38 +01:00
build-triangle.bat Android support for mesh example, some fixes for other android projects (#97) 2016-03-22 22:28:08 +01:00
build-vulkanscene.bat Android support for Vulkan demo scene (#97) 2016-03-23 21:45:43 +01:00
build.bat Added android support for gears, geometryshader, instancing and occlusion query examples (#97) 2016-03-25 19:43:01 +01:00
README.md Updated readmes on Android support and building (#97) 2016-03-22 22:51:36 +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, examples will show up on the launcher
  • Basic gamepad support is available too (zoom and rotate)

Imporant note

I'm currently in the process of replacing the old (separate) Android examples, integrating Android support into the main line of examples. This is a work-in-progress, so the examples that are already converted may contain errors. Most notably they won't free the Vulkan resources for now.

Building

Requirements

  • Android NDK r11b - Somewhere in your sarch path
  • Batch files for building are provided for windows only, with linux to be added at some point

Building the Examples

Builds are started using the provided batch file for each example.

Build only

Call the corresponding .bat, call e.g. :

build-triangle.bat

This will build the apk and move it to the "bin" folder

Deploy

If you want to deploy to an attached Android device right after the build is done :

build-triangle.bat -deploy