1
0
Fork 0

[REFACTOR] Begin refactor mesh

This commit is contained in:
Florian RICHER 2022-06-15 14:04:10 +02:00
parent 0c1dabb99a
commit 2fb1a1dc7c
2 changed files with 73 additions and 1 deletions

View file

@ -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>);
}