diff --git a/src/render/mod.rs b/src/render/mod.rs index 03d8a7b..1b60676 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -19,6 +19,8 @@ pub use mesh::Mesh; mod window; pub use window::Window; +mod pipelines; + pub trait Renderable { fn initialize(&mut self, device: &Device); fn update_instances(&mut self, queue: &Queue); diff --git a/src/render/pipelines/mod.rs b/src/render/pipelines/mod.rs index e69de29..46521a8 100644 --- a/src/render/pipelines/mod.rs +++ b/src/render/pipelines/mod.rs @@ -0,0 +1,9 @@ +use wgpu::{Device, Queue}; + +use super::Renderable; + +pub trait Processable { + fn initialize(&mut self, device: &Device, queue: &Queue, renderable_entities: Vec>); + fn resize(&mut self, new_size: winit::dpi::PhysicalSize, renderable_entities: Vec>); + fn render(&mut self, renderable_entities: Vec>) -> Result<(), wgpu::SurfaceError>; +} \ No newline at end of file