/Engine/Source/Runtime/Engine/Classes/Materials/Material.h
For all materials, UMaterial::CacheResourceShadersForRendering.
static void AllMaterialsCacheResourceShadersForRendering ( bool bUpdateProgressDialog, bool bCacheAllRemainingShaders )