i messed up the cfg directives
This commit is contained in:
parent
07d497250c
commit
a25d11ea41
1 changed files with 3 additions and 9 deletions
|
@ -32,15 +32,9 @@ pub struct RendererBackendManager {
|
|||
|
||||
impl RendererBackendManager {
|
||||
pub fn new(display_handle: RawDisplayHandle) -> Self {
|
||||
#[cfg(all(
|
||||
any(target_os = "macos", target_os = "ios"),
|
||||
target_feature = "vulkan-static"
|
||||
))]
|
||||
#[cfg(all(any(target_os = "macos", target_os = "ios"), feature = "vulkan-static"))]
|
||||
let entry = ash_molten::load();
|
||||
#[cfg(not(all(
|
||||
any(target_os = "macos", target_os = "ios"),
|
||||
target_feature = "vulkan-static"
|
||||
)))]
|
||||
#[cfg(not(all(any(target_os = "macos", target_os = "ios"), feature = "vulkan-static")))]
|
||||
let entry = Entry::linked();
|
||||
|
||||
let name = std::ffi::CString::new("gameboy").unwrap();
|
||||
|
@ -51,7 +45,7 @@ impl RendererBackendManager {
|
|||
|
||||
#[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::KhrGetPhysicalDeviceProperties2Fn::name().as_ptr());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue