validation_layers_android.rst 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .. _doc_validation_layers_android:
  2. Vulkan validation layers on Android
  3. ===================================
  4. Validation layers enable developers to verify their application's correct use
  5. of the Vulkan API. After enabling validation layers, a developer can see errors
  6. and warning messages in the ``adb logcat`` output.
  7. Enabling validation layers
  8. --------------------------
  9. Build validation layers from official sources
  10. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11. To build Android libraries, follow the instructions on
  12. `Khronos' repository <https://https://github.com/KhronosGroup/Vulkan-ValidationLayers/blob/master/BUILD.md#building-on-android>`__.
  13. After a successful build, the libraries will be located in ``Vulkan-ValidationLayers/build-android/libs``.
  14. Copy libraries
  15. ~~~~~~~~~~~~~~
  16. Copy libraries from ``Vulkan-ValidationLayers/build-android/libs`` to
  17. ``godot/platform/android/java/app/libs/debug/vulkan_validation_layers``.
  18. Your Godot source directory tree should look like on the example below::
  19. godot
  20. |-- platform
  21. |-- android
  22. |-- java
  23. |-- app
  24. |-- libs
  25. |-- debug
  26. |-- vulkan_validation_layers
  27. |-- arm64-v8a
  28. |-- armeabi-v7a
  29. |-- x86
  30. |-- x86_64
  31. If the subdirectory ``libs/debug/vulkan_validation_layers`` doesn't exist, create it.
  32. Compile and run the Android app
  33. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34. Linked validation layers are automatically loaded and enabled in Android debug builds.
  35. You can use Godot's :ref:`doc_one-click_deploy` feature to quickly test your project with the validation layers enabled.