function setAttributes(setters, attribs) {
      setters = setters.attribSetters || setters;
      Object.keys(attribs).forEach(function(name) {
        const setter = setters[name];
        if (setter) {
          setter(attribs[name]);
        }
      });
    }
Creates a vertex array object and then sets the attributes
on it

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