Add error if no backend is enabled

This commit is contained in:
Charlton Rodda
2023-12-10 02:11:11 +00:00
parent faa0f699e2
commit 7502fc16ea

View File

@@ -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")]