Use reflection in VertexAttribPointer