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

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

  return {
    format: info.textureFormat,
    type: info.type[0]
  };
}
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