Navigation
API > API/Plugins > API/Plugins/NiagaraShader > API/Plugins/NiagaraShader/FNiagaraShaderScript
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 |
virtual bool ShouldCache
&40;
EShaderPlatform Platform,
const FShaderType &42; ShaderType
&41; const
Remarks
Should the shader for this script 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) |