function createVAOFromBufferInfo(gl, programInfo, bufferInfo) {
  return createVAOAndSetAttributes(gl, programInfo.attribSetters || programInfo, bufferInfo.attribs, bufferInfo.indices);
}
Creates a vertex array object and then sets the attributes
on it

@param {WebGLRenderingContext} gl The WebGLRenderingContext
       to use.
@param {Object.<string, function>| module:twgl.ProgramInfo} programInfo as returned from createProgramInfo or Attribute setters as returned from createAttributeSetters
@param {module:twgl.BufferInfo} bufferInfo BufferInfo as returned from createBufferInfoFromArrays etc...
@param {WebGLBuffer} [indices] an optional ELEMENT_ARRAY_BUFFER of indices

@return {WebGLVertexArrayObject|null} The created WebGLVertexArrayObject

@memberOf module:twgl/vertexArrays