use eframe::{ egui, egui_wgpu::{self, wgpu}, wgpu::util::DeviceExt, }; pub trait Vertex { fn desc<'a>() -> wgpu::VertexBufferLayout<'a>; } #[repr(C)] #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] pub struct ModelVertex { pub position: [f32; 3], }