3d model loading

This commit is contained in:
Werner
2021-11-05 12:36:09 -03:00
parent 7792887fba
commit c5dbf96177
14 changed files with 746 additions and 577 deletions

7
Source/Mesh.rs Normal file
View File

@ -0,0 +1,7 @@
pub struct Mesh {
pub name: String,
pub vertex_buffer: wgpu::Buffer,
pub index_buffer: wgpu::Buffer,
pub num_elements: u32,
pub material: usize,
}