pub fn offset(&self) -> u64 {
        match self {
            VertexAttribute::Float { offset }
            | VertexAttribute::Vec2 { offset }
            | VertexAttribute::Vec3 { offset }
            | VertexAttribute::Vec4 { offset } => *offset,
        }
    }
/// Returns the offset of the attribute in the vertex.
Returns the offset of the attribute in the vertex.
Returns the offset of the attribute in the vertex .
pub fn offset(&self) -> u64 {
        match self {
            VertexAttribute::Float { offset }
            | VertexAttribute::Vec2 { offset }
            | VertexAttribute::Vec3 { offset }
            | VertexAttribute::Vec4 { offset } => *offset,
        }
    }
pub fn offset ( & self ) -> u64 { match self { VertexAttribute :: Float { offset } | VertexAttribute :: Vec2 { offset } | VertexAttribute :: Vec3 { offset } | VertexAttribute :: Vec4 { offset } => * offset , } }
Returns the offset of the attribute in the vertex.
Returns the offset of the attribute in the vertex .
&self
&self