mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-09 04:18:28 +00:00
Prepare to improve vertex rendering
This commit is contained in:
parent
7e27f5864b
commit
33a3185710
@ -109,3 +109,15 @@ impl Vertex for TrianglesVertex {
|
|||||||
1 => Float32x3,
|
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,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user