wgpu-shapes 0.2.1

simple shape renderer for wgpu
Documentation
1
2
3
4
5
6
7
8
9
#[repr(C)]
#[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)]
pub struct Vertex {
    pub(crate) position: [f32; 2],
}

impl wgpu_noboiler::vertex::Vertex<1> for Vertex {
    const ATTRIBS: [wgpu::VertexAttribute; 1] = wgpu::vertex_attr_array![0 => Float32x2];
}