src/programs.js
function createTransformFeedback(gl, programInfo, bufferInfo) {
  const tf = gl.createTransformFeedback();
  gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, tf);
  gl.useProgram(programInfo.program);
  bindTransformFeedbackInfo(gl, programInfo, bufferInfo);
  gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, null);
  return tf;
}
function createTransformFeedback(gl, programInfo, bufferInfo) {
  const tf = gl.createTransformFeedback();
  gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, tf);
  gl.useProgram(programInfo.program);
  bindTransformFeedbackInfo(gl, programInfo, bufferInfo);
  gl.bindTransformFeedback(gl.TRANSFORM_FEEDBACK, null);
  return tf;
}
function createTransformFeedback ( gl , programInfo , bufferInfo ) { const tf = gl . createTransformFeedback ( ) ; gl . bindTransformFeedback ( gl . TRANSFORM_FEEDBACK , tf ) ; gl . useProgram ( programInfo . program ) ; bindTransformFeedbackInfo ( gl , programInfo , bufferInfo ) ; gl . bindTransformFeedback ( gl . TRANSFORM_FEEDBACK , null ) ; return tf ; }
Creates a transform feedback and sets the buffers
@param {WebGLRenderingContext} gl The WebGLRenderingContext to use.
@param {module:twgl.ProgramInfo} programInfo A ProgramInfo as returned from {@link module:twgl.createProgramInfo}
@param {(module:twgl.BufferInfo|Object<string, module:twgl.AttribInfo>)} [bufferInfo] A BufferInfo or set of AttribInfos.
@return {WebGLTransformFeedback} the created transform feedback
@memberOf module:twgl
Creates a transform feedback and sets the buffers