@@ 49,13 49,7 @@ fn compile_shader() -> Vec<u8> {
use rendy::mesh::AsVertex;
-#[cfg(feature = "dx12")]
-type Backend = rendy::dx12::Backend;
-#[cfg(feature = "metal")]
-type Backend = rendy::metal::Backend;
-
-#[cfg(feature = "vulkan")]
type Backend = rendy::vulkan::Backend;
lazy_static::lazy_static! {
@@ 210,7 204,6 @@ where
fn dispose(self, _factory: &mut Factory<B>, _aux: &T) {}
}
-#[cfg(any(feature = "dx12", feature = "metal", feature = "vulkan"))]
fn run(
event_loop: &mut EventsLoop,
factory: &mut Factory<Backend>,
@@ 246,7 239,6 @@ fn run(
Ok(())
}
-#[cfg(any(feature = "dx12", feature = "metal", feature = "vulkan"))]
fn main() {
env_logger::Builder::from_default_env()
.filter_module("triangle", log::LevelFilter::Trace)
@@ 287,7 279,4 @@ fn main() {
run(&mut event_loop, &mut factory, &mut families, graph).unwrap();
}
-#[cfg(not(any(feature = "dx12", feature = "metal", feature = "vulkan")))]
-fn main() {
- panic!("Specify feature: { dx12, metal, vulkan }");
-}
+kk