Navigation
API > API/Plugins > API/Plugins/NiagaraShader > API/Plugins/NiagaraShader/FNiagaraShaderScript
Description
Compiles this script for Platform, storing the result in OutShaderMap if the compile was synchronous
Compiles this script for Platform, storing the result in OutShaderMap
| Name | BeginCompileShaderMap |
| Type | function |
| Header File | /Engine/Plugins/FX/Niagara/Source/NiagaraShader/Public/NiagaraShared.h |
| Include Path | #include "NiagaraShared.h" |
| Source | /Engine/Plugins/FX/Niagara/Source/NiagaraShader/Private/NiagaraShared.cpp |
bool BeginCompileShaderMap
(
const FNiagaraShaderMapId & ShaderMapId,
TRefCountPtr < class FNiagaraShaderMap > & OutShaderMap,
bool bApplyCompletedShaderMapForRendering,
bool bSynchronous
)
- true if compile succeeded or was not necessary (shader map for ShaderMapId was found and was complete)
Parameters
| Name | Remarks |
|---|---|
| ShaderMapId | the set of static parameters to compile |
| Platform | the platform to compile for |
| OutShaderMap | the shader map to compile |