/Engine/Source/Runtime/ImageCore/Public/ImageCoreUtils.h
Returns ETextureSourceFormat which can be used to efficiently store data encoded in both input formats. Can be used in cases when multiple sources need to be mixed together (i.e. in a texture array or UDIM)
namespace FImageCoreUtils { ETextureSourceFormat FImageCoreUtils::GetCommonSourceFormat ( ETextureSourceFormat Format1, ETextureSourceFormat Format2 ) }