summaryrefslogtreecommitdiff
path: root/drivers/vulkan/SCsub
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-25 12:31:15 +0100
committerGitHub <noreply@github.com>2022-02-25 12:31:15 +0100
commitcfd5177fc275559d222bfc3c8b39fbc049f4b5d8 (patch)
tree8167177bcf5a289a5f96b111a66af0fd00812702 /drivers/vulkan/SCsub
parent6fbfb27c0c8354155074ade09d3e7d58457260f4 (diff)
parent6325ed6705e27cdc7f04eb73bdaf08a2d665a4c7 (diff)
Merge pull request #58527 from bruvzg/vma_fix
Diffstat (limited to 'drivers/vulkan/SCsub')
-rw-r--r--drivers/vulkan/SCsub3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/vulkan/SCsub b/drivers/vulkan/SCsub
index 8fe75367a8..b6ceb1cdea 100644
--- a/drivers/vulkan/SCsub
+++ b/drivers/vulkan/SCsub
@@ -40,6 +40,9 @@ elif env["platform"] == "android":
# Our current NDK version only provides old Vulkan headers,
# so we have to limit VMA.
env_thirdparty_vma.AppendUnique(CPPDEFINES=["VMA_VULKAN_VERSION=1000000"])
+elif env["platform"] == "osx" or env["platform"] == "iphone":
+ # MoltenVK supports only Vulkan 1.1 API, limit VMA to the same version.
+ env_thirdparty_vma.AppendUnique(CPPDEFINES=["VMA_VULKAN_VERSION=1001000"])
env_thirdparty_vma.add_source_files(thirdparty_obj, thirdparty_sources_vma)