Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterialInterface
Description
This function will submit any remaining shaders to be compiled for all the materials in the passed in world. By default these shader compilation jobs will be compiled in the background so if you need the results immediately you can call FinishAllCompilation() to block on the results.
If the world is nullptr this will submit remaining shaders to be compiled for all the loaded materials.
GShaderCompilingManager->SubmitRemainingJobsForWorld(World);GShaderCompilingManager->FinishAllCompilation();
This will only submit shader compile jobs for missing shaders on each material. Calling this multiple times on the same world will result in a no-op.
| Name | SubmitRemainingJobsForWorld |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialInterface.h |
| Include Path | #include "Materials/MaterialInterface.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialInterface.cpp |
static void SubmitRemainingJobsForWorld
(
UWorld * World,
EMaterialShaderPrecompileMode CompileMode
)
Parameters
| Name | Remarks |
|---|---|
| World | Only compile shaders for materials that are used on primitives in this world. |
| CompileMode | Controls whether or not we block on the shader compile results. |