FNiagaraShaderMap::Compile

Compiles the shaders for a script and caches them in this shader map.

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/NiagaraShader.cpp

Syntax

void Compile
(
    FNiagaraShaderScript * Script,
    const FNiagaraShaderMapId & ShaderMapId,
    TRefCountPtr< FShaderCompilerEnvironment > CompilationEnvironment,
    const FNiagaraComputeShaderCompilationOutput & InNiagaraCompilationOutput,
    EShaderPlatform Platform,
    bool bSynchronousCompile,
    bool bApplyCompletedShaderMapForRendering
)

Remarks

Compiles the shaders for a script and caches them in this shader map. Compiles the shaders for a script and caches them in this shader map.

Parameters

Parameter

Description

script

The script to compile shaders for.

ShaderMapId

the set of static parameters to compile for

Platform

The platform to compile to

script

The script to compile shaders for.

InShaderMapId

the script id and set of static parameters to compile for

Platform

The platform to compile to

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