vulkan_validation_layers.rst 1.7 KB

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