inline VertexFormat operator,(VertexComponent c, unsigned i)
{ return (VertexFormat(c), i); }
+inline unsigned get_component_type(unsigned char c)
+{ return c>>2; }
+
+inline unsigned get_component_size(unsigned char c)
+{ return (c&3)+1; }
+
inline unsigned get_stride(const VertexFormat &f)
{ return f.stride(); }