Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterial
Description
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!
| Name | CacheResourceShadersForRendering |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/Material.h |
| Include Path | #include "Materials/Material.h" |
void CacheResourceShadersForRendering
(
bool bRegenerateId,
EMaterialShaderPrecompileMode PrecompileMode
)