Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials > API/Runtime/Engine/Materials/UMaterialInterface
- UMaterialInterface::CacheShaders()
- UMaterial::CacheShaders()
- UMaterialInstance::CacheShaders()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialInterface.h |
| Include | #include "Materials/MaterialInterface.h" |
virtual void CacheShaders
(
EMaterialShaderPrecompileMode CompileMode
)
Remarks
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.
Parameters
| Name | Description |
|---|---|
| CompileMode | Controls whether or not we block on the shader compile results. |