Pass vertex size

Added API to set the vertex size.