Navigation
API > API/Plugins > API/Plugins/NiagaraShader > API/Plugins/NiagaraShader/FNiagaraShaderMap
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 |
void Compile
&40;
FNiagaraShaderScript &42; Script,
const FNiagaraShaderMapId & ShaderMapId,
TRefCountPtr< FSharedShaderCompilerEnvironment > CompilationEnvironment,
const FNiagaraComputeShaderCompilationOutput & InNiagaraCompilationOutput,
EShaderPlatform Platform,
bool bSynchronousCompile,
bool bApplyCompletedShaderMapForRendering
&41;
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
| Name | 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 |