UNiagaraDataInterfaceHairStrands::ProvidePerInstanceDataForRenderThread

Subclasses that wish to work with GPU systems/emitters must implement this.

Windows
MacOS
Linux

Override Hierarchy

UNiagaraDataInterface::ProvidePerInstanceDataForRenderThread()

UNiagaraDataInterfaceHairStrands::ProvidePerInstanceDataForRenderThread()

References

Module

HairStrandsNiagara

Header

/Engine/Plugins/Experimental/HairStrands/Source/HairStrandsNiagara/Public/NiagaraDataInterfaceHairStrands.h

Include

#include "NiagaraDataInterfaceHairStrands.h"

Source

/Engine/Plugins/Experimental/HairStrands/Source/HairStrandsNiagara/Private/NiagaraDataInterfaceHairStrands.cpp

Syntax

virtual void ProvidePerInstanceDataForRenderThread
(
    void * DataForRenderThread,
    void * PerInstanceData,
    const FNiagaraSystemInstanceID & SystemInstance
)

Remarks

Subclasses that wish to work with GPU systems/emitters must implement this. Those interfaces must fill DataForRenderThread with the data needed to upload to the GPU. It will be the last thing called on this data interface for a specific tick. This will be consumed by the associated FNiagaraDataInterfaceProxy. Note: This class does not own the memory pointed to by DataForRenderThread. It will be recycled automatically. However, if you allocate memory yourself to pass via this buffer you ARE responsible for freeing it when it is consumed by the proxy (Which is what ChaosDestruction does). Likewise, the class also does not own the memory in PerInstanceData. That pointer is the pointer passed to PerInstanceTick/PerInstanceTickPostSimulate.

This will not be called if PerInstanceDataPassedToRenderThreadSize is 0.

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