wgpu_shapes/render/
vertex.rs1#[repr(C)]
2#[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)]
3pub struct Vertex {
4 pub(crate) position: [f32; 2],
5}
6
7impl wgpu_noboiler::vertex::Vertex<1> for Vertex {
8 const ATTRIBS: [wgpu::VertexAttribute; 1] = wgpu::vertex_attr_array![0 => Float32x2];
9}