 458cb7a9e9
			
		
	
	
		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`)~~.
		
			
				
	
	
		
			12 lines
		
	
	
		
			248 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 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();
 | |
| }
 |