mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 14:10:19 +00:00
rename WgpuPlugin
This commit is contained in:
parent
bd97da3a51
commit
8c4815b56e
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue