Prepare to improve vertex rendering

This commit is contained in:
Hanno Braun 2024-11-21 19:51:02 +01:00
parent 7e27f5864b
commit 33a3185710

View File

@ -109,3 +109,15 @@ impl Vertex for TrianglesVertex {
1 => Float32x3,
];
}
#[derive(Clone, Copy, bytemuck::Pod, bytemuck::Zeroable)]
#[repr(C)]
pub struct VerticesVertex {
pub position: [f32; 3],
}
impl Vertex for VerticesVertex {
const ATTRIBUTES: &[wgpu::VertexAttribute] = &wgpu::vertex_attr_array![
0 => Float32x3,
];
}