Navigation
API > API/Plugins > API/Plugins/Niagara
todo(dmp): some of the stuff we'd expect to see here is on FNiagaraDataInterfaceProxy - refactor?
| Name | FNiagaraDataInterfaceProxyRW |
| Type | struct |
| Header File | /Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraDataInterfaceRW.h |
| Include Path | #include "NiagaraDataInterfaceRW.h" |
Syntax
struct FNiagaraDataInterfaceProxyRW : public FNiagaraDataInterfaceProxy
Inheritance Hierarchy
- FNiagaraDataInterfaceProxy → FNiagaraDataInterfaceProxyRW
Derived Classes
FNiagaraDataInterfaceProxyRW derived class hierarchy
- INDIArrayProxyBase
- FNDIVelocityGridProxy
- FNiagaraDataInterfaceProxyGrid2DCollectionProxy
- FNiagaraDataInterfaceProxyGrid3DCollectionProxy
- FNiagaraDataInterfaceProxyNeighborGrid3D
- FNiagaraDataInterfaceProxyRasterizationGrid3D
- FNiagaraDataInterfaceProxyRenderTarget2DArrayProxy
- FNiagaraDataInterfaceProxyRenderTarget2DProxy
- FNiagaraDataInterfaceProxyRenderTargetCubeProxy
- FNiagaraDataInterfaceProxyRenderTargetVolumeProxy
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetDispatchArgs
(
const FNDIGpuComputeDispatchArgsGenContext& Context |
Called before PreStage to get the dispatch arguments The default implementation is temporary and will call GetElementCount & GetGPUInstanceCountOffset to set direct arguments. | NiagaraDataInterfaceRW.h | |
virtual FIntVector GetElementCount
(
FNiagaraSystemInstanceID SystemInstanceID |
Get the element count for this instance | NiagaraDataInterfaceRW.h | |
virtual uint32 GetGPUInstanceCountOffset
(
FNiagaraSystemInstanceID SystemInstanceID |
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 | NiagaraDataInterfaceRW.h |
Overridden from FNiagaraDataInterfaceProxy
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FNiagaraDataInterfaceProxyRW * AsIterationProxy() |
NiagaraDataInterfaceRW.h | ||
virtual void ConsumePerInstanceDataFromGameThread
(
void* PerInstanceData, |
NiagaraDataInterfaceRW.h | ||
virtual int32 PerInstanceDataPassedToRenderThreadSize() |
NiagaraDataInterfaceRW.h |