function canFilter(internalFormat) {
  var info = getTextureInternalFormatInfo(internalFormat);

  if (!info) {
    throw "unknown internal format";
  }

  return info.textureFilterable;
}
Gets whether or not we can generate mips for the given format
@param {number} internalFormat The internalFormat parameter from texImage2D etc..
@return {boolean} true if we can generate mips
@memberOf module:twgl/textures