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()
|
2023-09-26 19:35:08 +00:00
|
|
|
.add_plugins(
|
|
|
|
DefaultPlugins.set(RenderPlugin {
|
|
|
|
render_creation: WgpuSettings {
|
|
|
|
backends: None,
|
|
|
|
..default()
|
|
|
|
}
|
|
|
|
.into(),
|
2024-02-16 13:35:47 +00:00
|
|
|
..default()
|
2023-09-26 19:35:08 +00:00
|
|
|
}),
|
|
|
|
)
|
2022-01-08 10:39:43 +00:00
|
|
|
.run();
|
|
|
|
}
|