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