FNiagaraScriptExecutionParameterStore

Storage class containing actual runtime buffers to be used by the VM and the GPU.

Windows
MacOS
Linux

Inheritance Hierarchy

FNiagaraParameterStore

FNiagaraScriptExecutionParameterStore

References

Module

Niagara

Header

/Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraScriptExecutionParameterStore.h

Include

#include "NiagaraScriptExecutionParameterStore.h"

Syntax

[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)()
struct FNiagaraScriptExecutionParameterStore : public FNiagaraParameterStore

Remarks

Storage class containing actual runtime buffers to be used by the VM and the GPU. Is not the actual source for any parameter data, rather just the final place it's gathered from various other places ready for execution.

Constructors

Destructors

Functions

Name Description

Protected function

void

 

AddAlignmentPadding()

Protected function

void

 

AddPaddedParamSize

(
    const FNiagaraTypeDefinition& InPa...,
    uint32 InOffset
)

Public function

void

 

AddScriptParams

(
    UNiagaraScript* Script,
    ENiagaraSimTarget SimTarget,
    bool bTriggerRebind
)

Public function

void

 

CopyCurrToPrev()

Public function

void

 

CopyParameterDataToPaddedBuffer

(
    uint8* InTargetBuffer,
    uint32 InTargetBufferSizeInBytes
)

Helper that converts the data from the base type array internally into the padded out renderer-ready format.

Public function Const

uint32

 

GetExternalParameterSize()

Just the external parameters, not previous or internal...

Public function Const

uint32

 

GetPaddedParameterSizeInBytes()

The entire buffer padded out by the required alignment of the types..

Public function

void

 

InitFromOwningContext

(
    UNiagaraScript* Script,
    ENiagaraSimTarget SimTarget,
    bool bNotifyAsDirty
)

Call this init function if you are using a Niagara parameter store within an FNiagaraScriptExecutionContext.

Public function

void

 

InitFromOwningScript

(
    UNiagaraScript* Script,
    ENiagaraSimTarget SimTarget,
    bool bNotifyAsDirty
)

TODO: These function can probably go away entirely when we replace the FNiagaraParameters and DataInterface info in the script with an FNiagaraParameterStore.

Public function Const

bool

 

IsInitialized()

Public function

void

 

RenameParameter

(
    FNiagaraVariable& Param,
    FName NewName
)

Public function

void

 

SetAsInitialized()

Overridden from FNiagaraParameterStore

Name Description

Public function Virtual

bool

 

AddParameter

(
    const FNiagaraVariable& Param,
    bool bInitialize,
    bool bTriggerRebind,
    int32* OutOffset
)

Adds the passed parameter to this store.

Public function Virtual

void

 

Empty

(
    bool bClearBindings
)

Removes all parameters from this store and releases any data.

Public function Virtual

bool

 

RemoveParameter

(
    const FNiagaraVariable& Param
)

Removes the passed parameter if it exists in the store.

Operators

Name Description

Public function

FNiagaraScri...

 

operator=

(
    const FNiagaraParameterStore& Othe...
)

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