Navigation
API > API/Plugins > API/Plugins/NiagaraShader > API/Plugins/NiagaraShader/FNiagaraShaderMap
Description
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.
| Name | CreateCompileJobs |
| 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/NiagaraShader.cpp |
void CreateCompileJobs
(
const FNiagaraShaderType * ShaderType,
FStringView FriendlyName,
const FNiagaraShaderMapId & ShaderMapId,
FStringView SourceSource,
TRefCountPtr < FSharedShaderCompilerEnvironment > CompilationEnvironment,
TConstArrayView< FSimulationStageMetaData > StageMetaData,
int32 PermutationCount,
EShaderPlatform Platform,
TSharedPtr < FNiagaraShaderScriptParametersMetadata > ShaderParameters,
TArray < TRefCountPtr < FShaderCommonCompileJob > > & CompileJobs
)
Parameters
| Name | Remarks |
|---|---|
| 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 |