use libmoltenvk on ios

This commit is contained in:
Gray Olson 2018-07-06 21:48:54 -07:00
parent 594a476fdb
commit 606a0dce8c

View file

@ -19,9 +19,12 @@ const LIB_PATH: &'static str = "libvulkan.so.1";
#[cfg(target_os = "android")] #[cfg(target_os = "android")]
const LIB_PATH: &'static str = "libvulkan.so"; 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"; const LIB_PATH: &'static str = "libvulkan.1.dylib";
#[cfg(target_os = "ios")]
const LIB_PATH: &'static str = "libMoltenVK.dylib";
lazy_static!{ lazy_static!{
static ref VK_LIB: Result<DynamicLibrary, String> = DynamicLibrary::open(Some(&Path::new(LIB_PATH))); static ref VK_LIB: Result<DynamicLibrary, String> = DynamicLibrary::open(Some(&Path::new(LIB_PATH)));
} }