Fix cfg'ed backend imports

This commit is contained in:
Raph Levien 2021-05-25 17:09:24 -07:00
parent f04da3af9d
commit d15994fe44

View file

@ -14,10 +14,12 @@ pub mod mux;
mux! { mux! {
#[cfg(vk)] #[cfg(vk)]
pub mod vulkan;
}
mux! {
#[cfg(dx12)]
pub mod dx12; pub mod dx12;
} }
#[cfg(not(target_os = "macos"))]
pub mod vulkan;
/// This isn't great but is expedient. /// This isn't great but is expedient.
pub type Error = Box<dyn std::error::Error>; pub type Error = Box<dyn std::error::Error>;