/Engine/Source/Editor/MeshPaint/Public/TexturePaintHelpers.h
Returns the maximum bytes per pixel that are supported for source textures when painting. This limitation is set by CreateTempUncompressedTexture.
static int32 GetMaxSupportedBytesPerPixelForPainting()