|
@@ -1,24 +1,31 @@
|
|
-.. _doc_validation_layers_android:
|
|
|
|
|
|
+.. _doc_vulkan_validation_layers:
|
|
|
|
|
|
-Vulkan validation layers on Android
|
|
|
|
-===================================
|
|
|
|
|
|
+Validation layers
|
|
|
|
+=================
|
|
|
|
|
|
Validation layers enable developers to verify their application's correct use
|
|
Validation layers enable developers to verify their application's correct use
|
|
-of the Vulkan API. After enabling validation layers, a developer can see errors
|
|
|
|
-and warning messages in the ``adb logcat`` output.
|
|
|
|
|
|
+of the Vulkan API.
|
|
|
|
+
|
|
|
|
+.. _doc_vulkan_validation_layers-android:
|
|
|
|
+
|
|
|
|
+Android
|
|
|
|
+-------
|
|
|
|
+
|
|
|
|
+After enabling validation layers on Android, a developer can see errors and
|
|
|
|
+warning messages in the ``adb logcat`` output.
|
|
|
|
|
|
Enabling validation layers
|
|
Enabling validation layers
|
|
---------------------------
|
|
|
|
|
|
+~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
Build validation layers from official sources
|
|
Build validation layers from official sources
|
|
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
To build Android libraries, follow the instructions on
|
|
To build Android libraries, follow the instructions on
|
|
`Khronos' repository <https://https://github.com/KhronosGroup/Vulkan-ValidationLayers/blob/master/BUILD.md#building-on-android>`__.
|
|
`Khronos' repository <https://https://github.com/KhronosGroup/Vulkan-ValidationLayers/blob/master/BUILD.md#building-on-android>`__.
|
|
After a successful build, the libraries will be located in ``Vulkan-ValidationLayers/build-android/libs``.
|
|
After a successful build, the libraries will be located in ``Vulkan-ValidationLayers/build-android/libs``.
|
|
|
|
|
|
Copy libraries
|
|
Copy libraries
|
|
-~~~~~~~~~~~~~~
|
|
|
|
|
|
+^^^^^^^^^^^^^^
|
|
|
|
|
|
Copy libraries from ``Vulkan-ValidationLayers/build-android/libs`` to
|
|
Copy libraries from ``Vulkan-ValidationLayers/build-android/libs`` to
|
|
``godot/platform/android/java/app/libs/debug/vulkan_validation_layers``.
|
|
``godot/platform/android/java/app/libs/debug/vulkan_validation_layers``.
|
|
@@ -41,7 +48,7 @@ Your Godot source directory tree should look like on the example below::
|
|
If the subdirectory ``libs/debug/vulkan_validation_layers`` doesn't exist, create it.
|
|
If the subdirectory ``libs/debug/vulkan_validation_layers`` doesn't exist, create it.
|
|
|
|
|
|
Compile and run the Android app
|
|
Compile and run the Android app
|
|
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
Linked validation layers are automatically loaded and enabled in Android debug builds.
|
|
Linked validation layers are automatically loaded and enabled in Android debug builds.
|
|
You can use Godot's :ref:`doc_one-click_deploy` feature to quickly test your project with the validation layers enabled.
|
|
You can use Godot's :ref:`doc_one-click_deploy` feature to quickly test your project with the validation layers enabled.
|