Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterialInterface
Description
This function will submit any remaining shaders to be compiled for the given material. By default these shader compilation jobs will be compiled in the background.
Derived Overrides
| Name | CacheShaders |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialInterface.h |
| Include Path | #include "Materials/MaterialInterface.h" |
virtual void CacheShaders
(
EMaterialShaderPrecompileMode CompileMode
)
Parameters
| Name | Remarks |
|---|---|
| CompileMode | Controls whether or not we block on the shader compile results. |