FNiagaraGPUSystemTick

Represents all the information needed to dispatch a single tick of a [FNiagaraSystemInstance](API\Plugins\Niagara\FNiagaraSystemInstance).

Windows
MacOS
Linux

References

Module

Niagara

Header

/Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraGPUSystemTick.h

Include

#include "NiagaraGPUSystemTick.h"

Syntax

class FNiagaraGPUSystemTick

Remarks

Represents all the information needed to dispatch a single tick of a FNiagaraSystemInstance. This object will be created on the game thread and passed to the renderthread.

It contains the PerInstance data buffer for every DataInterface referenced by the system as well as the Data required to dispatch updates for each Emitter in the system.

DataInterface data is packed tightly. It includes a TMap that associates the data interface with the offset into the packed buffer. At that offset is the Per-Instance data for this System.

InstanceData_ParamData_Packed packs FNiagaraComputeInstanceData and ParamData into one buffer. There is padding after the array of FNiagaraComputeInstanceData so we can upload ParamData directly into a UniformBuffer (it is 16 byte aligned).

Variables

Name Description

Public variable

bool

 

bIsFinalTick

Public variable

FNiagaraCompute...

 

DIInstanceData

Public variable

uint8 *

 

GlobalParamData

Public variable

uint32

 

InstanceCount

Public variable

uint8 *

 

InstanceData_ParamData_Packed

Public variable

TConstArrayView...

 

InstanceDataDebuggingOnly

Debugging only.

Public variable

uint32

 

NumInstancesWithSimStages

Public variable

uint8 *

 

OwnerParamData

Public variable

FNiagaraSystemG...

 

SystemGpuComputeProxy

Public variable

FNiagaraSystemI...

 

SystemInstanceID

Data assigned by GT

Public variable

uint8 *

 

SystemParamData

Public variable

uint32

 

TotalDispatches

Public variable

TArray< FUnifor...

 

UniformBuffers

Transient data used by the RT.

Functions

Name Description

Public function

void

 

Destroy()

Public function Const

TArrayView< ...

 

GetInstances()

Public function Const

FUniformBuff...

 

GetUniformBuffer

(
    EUniformBufferType Type,
    const FNiagaraComputeInstanceData&...,
    bool Previous
)

Public function Const

const uint8 ...

 

GetUniformBufferSource

(
    EUniformBufferType Type,
    const FNiagaraComputeInstanceData&...,
    bool Previous
)

Public function

void

 

Init

(
    FNiagaraSystemInstance* InSyst...
)

Enums

Name

Description

Public enum

EUniformBufferType

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