Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FMaterial
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include | #include "MaterialShared.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialShared.cpp |
virtual bool ShouldCache
&40;
EShaderPlatform Platform,
const FShaderType &42; ShaderType,
const FVertexFactoryType &42; VertexFactoryType
&41; const
Remarks
Should the shader for this material with the given platform, shader type and vertex factory type combination be compiled true if the shader should be compiled
Parameters
| Name | Description |
|---|---|
| Platform | The platform currently being compiled for |
| ShaderType | Which shader is being compiled |
| VertexFactory | Which vertex factory is being compiled (can be NULL) |