diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 5768fea..f46ead8 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -26,6 +26,9 @@ use std::{ sync::{mpsc::Receiver, Arc, Mutex}, }; +#[cfg(all(feature = "vulkan", feature = "pixels"))] +compile_error!("select only one rendering backend!"); + #[allow(unused_attributes)] #[cfg(any(feature = "vulkan-renderer", feature = "pixels-renderer"))] #[cfg_attr(feature = "pixels-renderer", path = "renderer/pixels.rs")]