Fix building macOS/iOS with the latest Vulkan SDK
This commit is contained in:
5
Source/ThirdParty/volk/volk.Build.cs
vendored
5
Source/ThirdParty/volk/volk.Build.cs
vendored
@@ -42,16 +42,13 @@ public class volk : ThirdPartyModule
|
||||
break;
|
||||
case TargetPlatform.Mac:
|
||||
options.PublicDefinitions.Add("VK_USE_PLATFORM_MACOS_MVK");
|
||||
options.DependencyFiles.Add(Path.Combine(VulkanSdk.Instance.RootPath, "../MoltenVK/dylib/macOS/libMoltenVK.dylib"));
|
||||
options.DependencyFiles.Add(Path.Combine(VulkanSdk.Instance.RootPath, "../MoltenVK/dylib/macOS/MoltenVK_icd.json"));
|
||||
break;
|
||||
case TargetPlatform.iOS:
|
||||
options.PublicDefinitions.Add("VK_USE_PLATFORM_IOS_MVK");
|
||||
options.DependencyFiles.Add(Path.Combine(VulkanSdk.Instance.RootPath, "../MoltenVK/dylib/iOS/libMoltenVK.dylib"));
|
||||
options.DependencyFiles.Add(Path.Combine(VulkanSdk.Instance.RootPath, "../MoltenVK/dylib/iOS/MoltenVK_icd.json"));
|
||||
break;
|
||||
default: throw new InvalidPlatformException(options.Platform.Target);
|
||||
}
|
||||
VulkanSdk.Instance.AddDependencyFiles(options);
|
||||
|
||||
string includesFolderPath;
|
||||
if (VulkanSdk.Instance.TryGetIncludePath(options.Platform.Target, out includesFolderPath))
|
||||
|
||||
Reference in New Issue
Block a user