diff --git a/development/compiling/compiling_for_android.rst b/development/compiling/compiling_for_android.rst index 65fac870d..ced3a34ba 100644 --- a/development/compiling/compiling_for_android.rst +++ b/development/compiling/compiling_for_android.rst @@ -117,7 +117,7 @@ The resulting APK will be located at ``bin/android_debug.apk``. .. seealso:: If you want to enable Vulkan validation layers, see - :ref:`Vulkan validation layers on Android`. + :ref:`Vulkan validation layers on Android`. Adding support for x86 devices ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/development/cpp/index.rst b/development/cpp/index.rst index fc156be34..b87cc4109 100644 --- a/development/cpp/index.rst +++ b/development/cpp/index.rst @@ -18,3 +18,4 @@ Engine development custom_resource_format_loaders custom_audiostreams custom_godot_servers + vulkan/index diff --git a/development/cpp/vulkan/index.rst b/development/cpp/vulkan/index.rst new file mode 100644 index 000000000..4aad3c35f --- /dev/null +++ b/development/cpp/vulkan/index.rst @@ -0,0 +1,8 @@ +Vulkan +====== + +.. toctree:: + :maxdepth: 1 + :name: toc-devel-vulkan + + vulkan_validation_layers diff --git a/tutorials/platform/android/validation_layers_android.rst b/development/cpp/vulkan/vulkan_validation_layers.rst similarity index 78% rename from tutorials/platform/android/validation_layers_android.rst rename to development/cpp/vulkan/vulkan_validation_layers.rst index be9917e07..ba4662214 100644 --- a/tutorials/platform/android/validation_layers_android.rst +++ b/development/cpp/vulkan/vulkan_validation_layers.rst @@ -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 -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 --------------------------- +~~~~~~~~~~~~~~~~~~~~~~~~~~ Build validation layers from official sources -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ To build Android libraries, follow the instructions on `Khronos' repository `__. After a successful build, the libraries will be located in ``Vulkan-ValidationLayers/build-android/libs``. Copy libraries -~~~~~~~~~~~~~~ +^^^^^^^^^^^^^^ Copy libraries from ``Vulkan-ValidationLayers/build-android/libs`` to ``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. Compile and run the Android app -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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. diff --git a/tutorials/platform/android/index.rst b/tutorials/platform/android/index.rst index f81e096b2..e2406e6d8 100644 --- a/tutorials/platform/android/index.rst +++ b/tutorials/platform/android/index.rst @@ -7,4 +7,3 @@ Android plugins android_plugin android_in_app_purchases - validation_layers_android