design/gpu-programming/webgl/experiment/game-of-life/external/webgl-utils.js
function getBindPointForSamplerType(gl, type) {
    if (type === gl.SAMPLER_2D)   return gl.TEXTURE_2D;        // eslint-disable-line
    if (type === gl.SAMPLER_CUBE) return gl.TEXTURE_CUBE_MAP;  // eslint-disable-line
    return undefined;
  }
function getBindPointForSamplerType(gl, type) {
    if (type === gl.SAMPLER_2D)   return gl.TEXTURE_2D;        // eslint-disable-line
    if (type === gl.SAMPLER_CUBE) return gl.TEXTURE_CUBE_MAP;  // eslint-disable-line
    return undefined;
  }
function getBindPointForSamplerType ( gl , type ) { if ( type === gl . SAMPLER_2D ) return gl . TEXTURE_2D ; // eslint-disable-line if ( type === gl . SAMPLER_CUBE ) return gl . TEXTURE_CUBE_MAP ; // eslint-disable-line return undefined ; }
Returns the corresponding bind point for a given sampler type
Returns the corresponding bind point for a given sampler type