Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FMaterial
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool ShouldCache
(
const FShaderType* ShaderType, |
MaterialShared.h | ||
virtual bool ShouldCache
(
EShaderPlatform Platform, |
Should the shader for this material with the given platform, shader type and vertex factory type combination be compiled | MaterialShared.h |
ShouldCache(const FShaderType , const FVertexFactoryType )
| Name | ShouldCache |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include Path | #include "MaterialShared.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialShared.cpp |
virtual bool ShouldCache
(
const FShaderType * ShaderType,
const FVertexFactoryType * VertexFactoryType
) const
ShouldCache(EShaderPlatform, const FShaderType , const FVertexFactoryType )
Description
Should the shader for this material with the given platform, shader type and vertex factory type combination be compiled
Should the shader for this material with the given platform, shader type and vertex factory type combination be compiled
| Name | ShouldCache |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include Path | #include "MaterialShared.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialShared.cpp |
virtual bool ShouldCache
(
EShaderPlatform Platform,
const FShaderType * ShaderType,
const FVertexFactoryType * VertexFactoryType
) const
true if the shader should be compiled
Parameters
| Name | Remarks |
|---|---|
| ShaderType | Which shader is being compiled |
| VertexFactory | Which vertex factory is being compiled (can be NULL) |
| ShaderType | Which shader is being compiled |
| VertexFactory | Which vertex factory is being compiled (can be NULL) |