FNiagaraDataInterfaceProxyRW::GetGPUInstanceCountOffset

For data interfaces that support iteration on the GPU we need to be able to get the 'real' element count as known only by the GPU The dispatch will use the CPU count, which is potentially an over-estimation, and the value inside the buffer will be used to clip instances that are not valid

Windows
MacOS
Linux

References

Module

Niagara

Header

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

Include

#include "NiagaraDataInterfaceRW.h"

Syntax

virtual uint32 GetGPUInstanceCountOffset
(
    FNiagaraSystemInstanceID SystemInstanceID
) const

Remarks

For data interfaces that support iteration on the GPU we need to be able to get the 'real' element count as known only by the GPU The dispatch will use the CPU count, which is potentially an over-estimation, and the value inside the buffer will be used to clip instances that are not valid

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