mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 05:03:47 +00:00
ebaa347afe
# Objective Fixes #11846 ## Solution Add a `synchronous_pipeline_compilation ` field to `RenderPlugin`, defaulting to `false`. Most of the diff is whitespace. ## Changelog Added `synchronous_pipeline_compilation ` to `RenderPlugin` for disabling async pipeline creation. ## Migration Guide TODO: consider combining this with the guide for #11846 `RenderPlugin` has a new `synchronous_pipeline_compilation ` property. The default value is `false`. Set this to `true` if you want to retain the previous synchronous behavior. --------- Co-authored-by: JMS55 <47158642+JMS55@users.noreply.github.com> Co-authored-by: François <mockersf@gmail.com>
25 lines
657 B
Rust
25 lines
657 B
Rust
//! An application that runs with default plugins and displays an empty
|
|
//! window, but without an actual renderer.
|
|
//! This can be very useful for integration tests or CI.
|
|
//!
|
|
//! See also the `headless` example which does not display a window.
|
|
|
|
use bevy::{
|
|
prelude::*,
|
|
render::{settings::WgpuSettings, RenderPlugin},
|
|
};
|
|
|
|
fn main() {
|
|
App::new()
|
|
.add_plugins(
|
|
DefaultPlugins.set(RenderPlugin {
|
|
render_creation: WgpuSettings {
|
|
backends: None,
|
|
..default()
|
|
}
|
|
.into(),
|
|
..default()
|
|
}),
|
|
)
|
|
.run();
|
|
}
|