Added method to create vertex buffer to a raw buffer