/// Vertex layout compatible with this vertex type.
Vertex layout compatible with this vertex type.
Vertex layout compatible with this vertex type .
pub fn layout() -> VertexLayout<'static> {
        static ATTRIBUTES: [VertexAttribute; 2] = [
            VertexAttribute::Vec2 { offset: 0 },
            VertexAttribute::Vec2 { offset: 8 },
        ];
        VertexLayout {
            stride: std::mem::size_of::<Self>() as _,
            step_mode: wgpu::VertexStepMode::Vertex,
            attributes: &ATTRIBUTES,
        }
    }
pub fn layout ( ) -> VertexLayout < ' static > { static ATTRIBUTES : [ VertexAttribute ; 2 ] = [ VertexAttribute :: Vec2 { offset : 0 } , VertexAttribute :: Vec2 { offset : 8 } , ] ; VertexLayout { stride : std :: mem :: size_of :: < Self > ( ) as _ , step_mode : wgpu :: VertexStepMode :: Vertex , attributes : & ATTRIBUTES , } }
Vertex layout compatible with this vertex type.
Vertex layout compatible with this vertex type .