/Engine/Source/Runtime/Engine/Classes/Materials/MaterialInstance.h
Cache resource shaders for rendering on the given shader platform. If a matching shader map is not found in memory or the DDC, a new one will be compiled. The results will be applied to thisFMaterialin the renderer when they are finished compiling. Note: This modifies material variables used for rendering and is assumed to be called within a FMaterialUpdateContext!
void CacheResourceShadersForCooking ( EShaderPlatform ShaderPlatform, [TArray](API\Runtime\Core\Containers\TArray)< [FMaterialResource](API\Runtime\Engine\FMaterialResource) * > & OutCachedMaterialResources, EMaterialShaderPrecompileMode PrecompileMode, const [ITargetPlatform](API\Developer\TargetPlatform\Interfaces\ITargetPlatform) * TargetPlatform, bool bBlocking )