diff options
author | Fredia Huya-Kouadio <fhuya@meta.com> | 2023-02-27 07:02:37 -0800 |
---|---|---|
committer | Fredia Huya-Kouadio <fhuya@meta.com> | 2023-02-28 11:20:34 -0800 |
commit | 306a2ad3865198335974c319f27baa5c4f443186 (patch) | |
tree | 198061972cbc804b582a01142cc163a19f712565 /platform/android/export/export_plugin.cpp | |
parent | 8208060c2189f972dc08554ee54e5937368e2e96 (diff) | |
download | redot-engine-306a2ad3865198335974c319f27baa5c4f443186.tar.gz |
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.cpp | 5 |
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) { |