diff --git a/src/lib.rs b/src/lib.rs index fe1b93a..e35d09e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -171,6 +171,9 @@ impl Plugin for OpenXrPlugin { } } +#[cfg(all(not(feature = "vulkan"), not(all(feature = "d3d12", windows))))] +compile_error!("At least one platform-compatible backend feature must be enabled."); + #[derive(Debug)] pub enum Backend { #[cfg(feature = "vulkan")]