function writePointVertex(buffer, pos, x, y, index) {
  buffer[pos + 0] = x;
  buffer[pos + 1] = y;
  buffer[pos + 2] = index;
}
@param {Float32Array} buffer Buffer
@param {number} pos Position
@param {number} x X
@param {number} y Y
@param {number} index Index