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 CacheResourceShadersForRendering
&40;
bool bRegenerateId,
EMaterialShaderPrecompileMode PrecompileMode
&41;
Remarks
Cache resource shaders for rendering. 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 this FMaterial in the renderer when they are finished compiling. Note: This modifies material variables used for rendering and is assumed to be called within a FMaterialUpdateContext!