From 606a0dce8c35d5f83a00aa372bd4dfc1f89a0737 Mon Sep 17 00:00:00 2001 From: Gray Olson Date: Fri, 6 Jul 2018 21:48:54 -0700 Subject: [PATCH] use libmoltenvk on ios --- ash/src/entry.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ash/src/entry.rs b/ash/src/entry.rs index f200d27..ec55c45 100644 --- a/ash/src/entry.rs +++ b/ash/src/entry.rs @@ -19,9 +19,12 @@ const LIB_PATH: &'static str = "libvulkan.so.1"; #[cfg(target_os = "android")] const LIB_PATH: &'static str = "libvulkan.so"; -#[cfg(any(target_os = "macos", target_os = "ios"))] +#[cfg(target_os = "macos")] const LIB_PATH: &'static str = "libvulkan.1.dylib"; +#[cfg(target_os = "ios")] +const LIB_PATH: &'static str = "libMoltenVK.dylib"; + lazy_static!{ static ref VK_LIB: Result = DynamicLibrary::open(Some(&Path::new(LIB_PATH))); }