15 lines
287 B
Rust
15 lines
287 B
Rust
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],
|
|
} |