rename WgpuPlugin

This commit is contained in:
Carter Anderson 2020-04-06 21:44:32 -07:00
parent bd97da3a51
commit 8c4815b56e
2 changed files with 3 additions and 3 deletions

View file

@ -13,9 +13,9 @@ use bevy_window::{WindowCreated, WindowResized};
use legion::prelude::*;
#[derive(Default)]
pub struct WgpuRendererPlugin;
pub struct WgpuPlugin;
impl AppPlugin for WgpuRendererPlugin {
impl AppPlugin for WgpuPlugin {
fn build(&self, app: &mut AppBuilder) {
let render_system = wgpu_render_system(app.resources());
app.add_thread_local_fn_to_stage(RENDER_STAGE, render_system);

View file

@ -87,7 +87,7 @@ impl AddDefaultPlugins for AppBuilder {
self.add_plugin(bevy_app::schedule_runner::ScheduleRunnerPlugin::default());
#[cfg(feature = "wgpu")]
self.add_plugin(bevy_wgpu::WgpuRendererPlugin::default());
self.add_plugin(bevy_wgpu::WgpuPlugin::default());
self
}