Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials > UMaterial
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/Material.h |
Include | #include "Materials/Material.h" |
Source | /Engine/Source/Runtime/Engine/Private/Materials/Material.cpp |
void CacheResourceShadersForCooking
&40;
EShaderPlatform Platform,
TArray< FMaterialResource &42; > & OutCachedMaterialResources,
const ITargetPlatform &42; TargetPlatform,
bool bBlocking
&41;
Remarks
Cache resource shaders for cooking on the given shader platform. If a matching shader map is not found in memory or the DDC, a new one will be compiled. This does not apply completed results to the renderer scenes. Caller is responsible for deleting OutCachedMaterialResources. Note: This modifies material variables used for rendering and is assumed to be called within a FMaterialUpdateContext!