rename WgpuPlugin
This commit is contained in:
		
							parent
							
								
									bd97da3a51
								
							
						
					
					
						commit
						8c4815b56e
					
				| @ -13,9 +13,9 @@ use bevy_window::{WindowCreated, WindowResized}; | |||||||
| use legion::prelude::*; | use legion::prelude::*; | ||||||
| 
 | 
 | ||||||
| #[derive(Default)] | #[derive(Default)] | ||||||
| pub struct WgpuRendererPlugin; | pub struct WgpuPlugin; | ||||||
| 
 | 
 | ||||||
| impl AppPlugin for WgpuRendererPlugin { | impl AppPlugin for WgpuPlugin { | ||||||
|     fn build(&self, app: &mut AppBuilder) { |     fn build(&self, app: &mut AppBuilder) { | ||||||
|         let render_system = wgpu_render_system(app.resources()); |         let render_system = wgpu_render_system(app.resources()); | ||||||
|         app.add_thread_local_fn_to_stage(RENDER_STAGE, render_system); |         app.add_thread_local_fn_to_stage(RENDER_STAGE, render_system); | ||||||
|  | |||||||
| @ -87,7 +87,7 @@ impl AddDefaultPlugins for AppBuilder { | |||||||
|         self.add_plugin(bevy_app::schedule_runner::ScheduleRunnerPlugin::default()); |         self.add_plugin(bevy_app::schedule_runner::ScheduleRunnerPlugin::default()); | ||||||
| 
 | 
 | ||||||
|         #[cfg(feature = "wgpu")] |         #[cfg(feature = "wgpu")] | ||||||
|         self.add_plugin(bevy_wgpu::WgpuRendererPlugin::default()); |         self.add_plugin(bevy_wgpu::WgpuPlugin::default()); | ||||||
| 
 | 
 | ||||||
|         self |         self | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Carter Anderson
						Carter Anderson