diff --git a/.vscode/settings.json b/.vscode/settings.json index 03050dc9b8..ebc81e8919 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,7 @@ "cSpell.words": [ "Bitmask", "MSAA", + "Renderable", "Wgpu", "Zunstable", "bools", diff --git a/examples/simple.rs b/examples/simple.rs index 67645517f2..21a8cabcd8 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -26,14 +26,14 @@ fn setup(world: &mut World, resources: &mut Resources) { .add_entity(MeshEntity { mesh: plane_handle, material: plane_material_handle, - renderable: Renderable::instanced(), + // renderable: Renderable::instanced(), ..Default::default() }) // cube .add_entity(MeshEntity { mesh: cube_handle, material: cube_material_handle, - renderable: Renderable::instanced(), + // renderable: Renderable::instanced(), translation: Translation::new(-1.5, 0.0, 1.0), ..Default::default() }) @@ -41,7 +41,7 @@ fn setup(world: &mut World, resources: &mut Resources) { .add_entity(MeshEntity { mesh: cube_handle, material: cube_material_handle, - renderable: Renderable::instanced(), + // renderable: Renderable::instanced(), translation: Translation::new(1.5, 0.0, 1.0), ..Default::default() }) diff --git a/src/app/app.rs b/src/app/app.rs index e5577432b6..6184e81232 100644 --- a/src/app/app.rs +++ b/src/app/app.rs @@ -6,18 +6,13 @@ use winit::{ use legion::prelude::*; -use crate::{ - app::AppBuilder, - core::Time, - render::{render_graph::RenderGraph, renderer::Renderer}, -}; +use crate::{app::AppBuilder, core::Time, render::renderer::Renderer}; pub struct App { pub universe: Universe, pub world: World, pub resources: Resources, pub renderer: Option>, - pub render_graph: RenderGraph, pub schedule: Schedule, } @@ -28,7 +23,6 @@ impl App { schedule: Schedule, resources: Resources, renderer: Option>, - render_graph: RenderGraph, ) -> App { App { universe, @@ -36,7 +30,6 @@ impl App { schedule, renderer, resources, - render_graph, } } @@ -51,11 +44,7 @@ impl App { self.schedule.execute(&mut self.world, &mut self.resources); if let Some(ref mut renderer) = self.renderer { - renderer.process_render_graph( - &mut self.render_graph, - &mut self.world, - &mut self.resources, - ); + renderer.update(&mut self.world, &mut self.resources); } if let Some(mut time) = self.resources.get_mut::