2022-07-11 14:11:32 +00:00
|
|
|
//! An application that runs with default plugins and displays an empty
|
|
|
|
//! window, but without an actual renderer.
|
2022-05-16 13:53:20 +00:00
|
|
|
//! This can be very useful for integration tests or CI.
|
2022-07-11 14:11:32 +00:00
|
|
|
//!
|
|
|
|
//! See also the `headless` example which does not display a window.
|
2022-05-16 13:53:20 +00:00
|
|
|
|
2022-12-20 16:17:11 +00:00
|
|
|
use bevy::{
|
|
|
|
prelude::*,
|
|
|
|
render::{settings::WgpuSettings, RenderPlugin},
|
|
|
|
};
|
2022-01-08 10:39:43 +00:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
App::new()
|
2022-12-20 16:17:11 +00:00
|
|
|
.add_plugins(DefaultPlugins.set(RenderPlugin {
|
|
|
|
wgpu_settings: WgpuSettings {
|
|
|
|
backends: None,
|
|
|
|
..default()
|
|
|
|
},
|
|
|
|
}))
|
2022-01-08 10:39:43 +00:00
|
|
|
.run();
|
|
|
|
}
|