summaryrefslogtreecommitdiffstats
path: root/platform/android/export/export_plugin.cpp
diff options
context:
space:
mode:
authorYuri Sizov <11782833+YuriSizov@users.noreply.github.com>2023-03-16 13:08:09 +0100
committerGitHub <noreply@github.com>2023-03-16 13:08:09 +0100
commit2dc16f3c5889aa8e1bb12bf215d38aed82b3a733 (patch)
tree022cca8d27a25a245b5818a793cc5905319d58e0 /platform/android/export/export_plugin.cpp
parent98d95f3a0ee74aef3d48449051f314606c3c1015 (diff)
parent306a2ad3865198335974c319f27baa5c4f443186 (diff)
downloadredot-engine-2dc16f3c5889aa8e1bb12bf215d38aed82b3a733.tar.gz
Merge pull request #74066 from m4gr3d/add_vulkan_version_filter_main
Add feature check to require min Vulkan api version 1.0 on Android
Diffstat (limited to 'platform/android/export/export_plugin.cpp')
-rw-r--r--platform/android/export/export_plugin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp
index 641258a26c..3153b9ee24 100644
--- a/platform/android/export/export_plugin.cpp
+++ b/platform/android/export/export_plugin.cpp
@@ -1068,6 +1068,11 @@ void EditorExportPlatformAndroid::_fix_manifest(const Ref<EditorExportPreset> &p
feature_names.push_back("android.hardware.vulkan.level");
feature_required_list.push_back(true);
feature_versions.push_back(1);
+
+ // Require vulkan version 1.0
+ feature_names.push_back("android.hardware.vulkan.version");
+ feature_required_list.push_back(true);
+ feature_versions.push_back(0x400003); // Encoded value for api version 1.0
}
if (feature_names.size() > 0) {