code: function getFormatAndTypeForInternalFormat(internalFormat) {
    const info = textureInternalFormatInfo[internalFormat];
    if (!info) {
      throw "unknown internal format";
    }
    return {
      format: info.textureFormat,
      type: info.type[0],
    };
  }
docs: Info related to a specific texture internalFormat as returned
  from {@link module:twgl/textures.getFormatAndTypeForInternalFormat}.
  
  @typedef {Object} TextureFormatInfo
  @property {number} format Format to pass to texImage2D and related functions
  @property {number} type Type to pass to texImage2D and related functions
  @memberOf module:twgl/textures
   
  Gets the format and type for a given internalFormat
  
  @param {number} internalFormat The internal format
  @return {module:twgl/textures.TextureFormatInfo} the corresponding format and type,
  @memberOf module:twgl/textures