i messed up the cfg directives

This commit is contained in:
Alex Janka 2023-10-05 10:26:33 +11:00
parent 07d497250c
commit a25d11ea41

View file

@ -32,15 +32,9 @@ pub struct RendererBackendManager {
impl RendererBackendManager { impl RendererBackendManager {
pub fn new(display_handle: RawDisplayHandle) -> Self { pub fn new(display_handle: RawDisplayHandle) -> Self {
#[cfg(all( #[cfg(all(any(target_os = "macos", target_os = "ios"), feature = "vulkan-static"))]
any(target_os = "macos", target_os = "ios"),
target_feature = "vulkan-static"
))]
let entry = ash_molten::load(); let entry = ash_molten::load();
#[cfg(not(all( #[cfg(not(all(any(target_os = "macos", target_os = "ios"), feature = "vulkan-static")))]
any(target_os = "macos", target_os = "ios"),
target_feature = "vulkan-static"
)))]
let entry = Entry::linked(); let entry = Entry::linked();
let name = std::ffi::CString::new("gameboy").unwrap(); let name = std::ffi::CString::new("gameboy").unwrap();
@ -51,7 +45,7 @@ impl RendererBackendManager {
#[cfg(any(target_os = "macos", target_os = "ios"))] #[cfg(any(target_os = "macos", target_os = "ios"))]
{ {
#[cfg(not(target_feature = "vulkan-static"))] #[cfg(not(feature = "vulkan-static"))]
extension_names.push(vk::KhrPortabilityEnumerationFn::name().as_ptr()); extension_names.push(vk::KhrPortabilityEnumerationFn::name().as_ptr());
extension_names.push(vk::KhrGetPhysicalDeviceProperties2Fn::name().as_ptr()); extension_names.push(vk::KhrGetPhysicalDeviceProperties2Fn::name().as_ptr());
} }