FMaterial::ShouldCache

Should the shader for this material with the given platform, shader type and vertex factory type combination be compiled

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MaterialShared.h

Include

#include "MaterialShared.h"

Source

/Engine/Source/Runtime/Engine/Private/Materials/MaterialShared.cpp

Syntax

virtual bool ShouldCache
(
    EShaderPlatform Platform,
    const FShaderType * ShaderType,
    const FVertexFactoryType * VertexFactoryType
) const

Remarks

Should the shader for this material with the given platform, shader type and vertex factory type combination be compiled

Returns

true if the shader should be compiled

Parameters

Parameter

Description

Platform

The platform currently being compiled for

ShaderType

Which shader is being compiled

VertexFactory

Which vertex factory is being compiled (can be NULL)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss