Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FMaterialShaderMap
Description
Compiles the shaders for a material and caches them in this shader map. Compiles the shaders for a material and caches them in this shader map.
| Name | Compile |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include Path | #include "MaterialShared.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialShader.cpp |
void Compile
(
FMaterial * Material,
const FMaterialShaderMapId & ShaderMapId,
const TRefCountPtr < FSharedShaderCompilerEnvironment > & MaterialEnvironment,
const FMaterialCompilationOutput & InMaterialCompilationOutput,
EShaderPlatform Platform,
EMaterialShaderPrecompileMode PrecompileMode
)
Parameters
| Name | Remarks |
|---|---|
| Material | The material to compile shaders for. |
| ShaderMapId | the set of static parameters to compile for |
| Platform | The platform to compile to |
| Material | The material to compile shaders for. |
| InShaderMapId | the set of static parameters to compile for |
| Platform | The platform to compile to |