FNiagaraShaderType::ShouldCache

Checks if the shader type should be cached for a particular platform and script.

Windows
MacOS
Linux

References

Module

NiagaraShader

Header

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

Include

#include "NiagaraShaderType.h"

Syntax

bool ShouldCache
(
    EShaderPlatform Platform,
    const FNiagaraShaderScript * Script
) const

Remarks

Checks if the shader type should be cached for a particular platform and script.

Returns

True if this shader type should be cached.

Parameters

Parameter

Description

Platform

The platform to check.

script

The script to check.

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