From 6325ed6705e27cdc7f04eb73bdaf08a2d665a4c7 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Fri, 25 Feb 2022 11:32:20 +0200 Subject: [PATCH] Fix build for macOS / iOS with the statically linked MoltenVK after VMA update. --- drivers/vulkan/SCsub | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/vulkan/SCsub b/drivers/vulkan/SCsub index 8fe75367a87..b6ceb1cdeaf 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)