Refactor CreateVertexBuffer