error if attempting to build with multiple renderers
This commit is contained in:
parent
4a5ab2a90a
commit
f023073cab
1 changed files with 3 additions and 0 deletions
|
@ -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")]
|
||||
|
|
Loading…
Add table
Reference in a new issue