mirror of
https://github.com/bevyengine/bevy
synced 2024-12-04 02:19:15 +00:00
458cb7a9e9
# Objective In this PR I added the ability to opt-out graphical backends. Closes #3155. ## Solution I turned backends into `Option` ~~and removed panicking sub app API to force users handle the error (was suggested by `@cart`)~~.
11 lines
248 B
Rust
11 lines
248 B
Rust
use bevy::{prelude::*, render::options::WgpuOptions};
|
|
|
|
fn main() {
|
|
App::new()
|
|
.insert_resource(WgpuOptions {
|
|
backends: None,
|
|
..Default::default()
|
|
})
|
|
.add_plugins(DefaultPlugins)
|
|
.run();
|
|
}
|