Navigation
API > API/Plugins > API/Plugins/Niagara
References
| Module | Niagara |
| Header | /Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraScript.h |
| Include | #include "NiagaraScript.h" |
Syntax
USTRUCT ()
struct FNiagaraVMExecutableData
Remarks
Struct containing all of the data needed to run a Niagara VM executable script.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FNiagaraFunctionSignature > | AdditionalExternalFunctions | ||
| TArray< FNiagaraVariableBase > | Attributes | Attributes used by this script. | |
| TArray< FNiagaraVariableBase > | AttributesWritten | List of all attributes explicitly written by this VM script graph. | |
| TArray< FNiagaraVariable > | BakedRapidIterationParameters | The default set of rapid iteration parameters defined by the script that this data represents. | |
| uint32: 1 | bNeedsGPUContextInit | ||
| bool | bReadsAttributeData | ||
| uint32: 1 | bReadsSignificanceIndex | ||
| FNiagaraVMExecutableByteCode | ByteCode | Byte code to execute for this system. | |
| TArray< FVMExternalFunction > | CalledVMExternalFunctionBindings | ||
| TArray< FVMExternalFunctionBindingInfo > | CalledVMExternalFunctions | Array of ordered vm external functions to place in the function table. | |
| TArray< FNiagaraCompilerTag > | CompileTags | ||
| TArray< FNiagaraCompilerTag > | CompileTagsEditorOnly | ||
| TArray< FNiagaraScriptDataInterfaceCompileInfo > | DataInterfaceInfo | Information about all data interfaces used by this script. | |
| TMap< FName, FNiagaraParameters > | DataSetToParameters | ||
| FNiagaraScriptDataUsageInfo | DataUsage | Contains various usage information for this script. | |
| FString | ErrorMsg | ||
| TArray< uint8 > | ExperimentalContextData | ||
| TArray< FNiagaraCompileDependency > | ExternalDependencies | List of all external dependencies of this script. If not met, linking should result in an error. | |
| FNiagaraParameters | InternalParameters | All the data for using external constants in the script, laid out in the order they are expected in the uniform table. | |
| FString | LastAssemblyTranslation | ||
| TArray< FNiagaraCompileEvent > | LastCompileEvents | Array of all compile events generated last time the script was compiled. | |
| ENiagaraScriptCompileStatus | LastCompileStatus | Last known compile status. Lets us determine the latest state of the script byte buffer. | |
| FString | LastExperimentalAssemblyScript | ||
| FString | LastHlslTranslation | ||
| FString | LastHlslTranslationGPU | Note that this is currently needed to be non-transient because of how we kick off compilation of GPUComputeScripts. | |
| uint32 | LastOpCount | ||
| int32 | NumTempRegisters | Number of temp registers used by this script. | |
| int32 | NumUserPtrs | Number of user pointers we must pass to the VM. | |
| FNiagaraVMExecutableData::FOptimizationTask | OptimizationTask | ||
| FNiagaraVMExecutableByteCode | OptimizedByteCode | Optimized version of the byte code to execute for this system | |
| TArray< FString > | ParameterCollectionPaths | The parameter collections used by this script. | |
| FNiagaraParameters | Parameters | All the data for using external constants in the script, laid out in the order they are expected in the uniform table. | |
| TArray< FNiagaraDataSetID > | ReadDataSets | ||
| TArray< uint8 > | ScriptLiterals | ||
| FNiagaraShaderScriptParametersMetadata | ShaderScriptParametersMetadata | ||
| TArray< FSimulationStageMetaData > | SimulationStageMetaData | ||
| TArray< FNiagaraVariable > | StaticVariablesWritten | List of all attributes explicitly written by this VM script graph. | |
| TArray< FNiagaraStatScope > | StatScopes | Scopes we'll track with stats. | |
| TArray< FNiagaraScriptUObjectCompileInfo > | UObjectInfos | Information about all the UObjects used by this script. | |
| TArray< FNiagaraDataSetProperties > | WriteDataSets |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyFinishedOptimization
(
const FNiagaraVMExecutableDataId& CachedScriptVMId, |
||
| void | BakeScriptLiterals
(
TArray< uint8 >& OutLiterals |
||
| bool | HasByteCode () |
||
| bool | IsValid () |
||
| void | PostSerialize
(
const FArchive& Ar |
||
| void | Reset () |
||
| void | SerializeData
(
FArchive& Ar, |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOptimizationTask | Container for the optimization task that doesn't copy the task over when the executable data is copied. |