[REFACTOR] Begin refactor mesh
This commit is contained in:
parent
0c1dabb99a
commit
2fb1a1dc7c
2 changed files with 73 additions and 1 deletions
|
@ -12,4 +12,13 @@ pub use texture::Texture;
|
|||
mod instance;
|
||||
pub use instance::{
|
||||
Instance, InstanceRaw
|
||||
};
|
||||
};
|
||||
use wgpu::{Device, Queue};
|
||||
|
||||
mod mesh;
|
||||
|
||||
pub trait Renderable {
|
||||
fn prepare(&mut self, device: &Device);
|
||||
fn update_instances(&mut self, device: &Queue);
|
||||
fn render<'a>(&'a self, render_pass: &mut wgpu::RenderPass<'a>);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue