FNiagaraShaderScript::ShouldCache

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

Choose your operating system:

Windows

macOS

Linux

References

Module

NiagaraShader

Header

/Engine/Plugins/FX/Niagara/Source/NiagaraShader/Public/NiagaraShared.h

Include

#include "NiagaraShared.h"

Source

/Engine/Plugins/FX/Niagara/Source/NiagaraShader/Private/NiagaraShared.cpp

Syntax

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

Remarks

Should the shader for this script 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)