Skip to content

Commit

Permalink
Add error if no backend is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
SafariMonkey committed Dec 10, 2023
1 parent 163e4a7 commit bcc7d94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ impl Default for OpenXrPlugin {
}
}

#[cfg(all(not(feature = "vulkan"), not(all(feature = "d3d12", windows))))]
compile_error!("At least one platform-compatible backend feature must be enabled.");

pub enum Backend {
#[cfg(feature = "vulkan")]
Vulkan,
Expand Down

0 comments on commit bcc7d94

Please sign in to comment.