engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FDynamicSpriteEmitterData结构体 参考

Dynamic emitter data for sprite emitters 更多...

#include <ParticleHelper.h>

+ 类 FDynamicSpriteEmitterData 继承关系图:

Public 成员函数

virtual FParticleVertexFactoryBase * BuildVertexFactory (const FParticleSystemSceneProxy *InOwnerProxy) override
 Create the vertex factory for this emitter data 更多...
 
virtual void GatherSimpleLights (const FParticleSystemSceneProxy *Proxy, const FSceneViewFamily &ViewFamily, FSimpleLightArray &OutParticleLights) const override
 Gathers simple lights for this emitter.
 
virtual int32 GetDynamicParameterVertexStride () const override
 Get the vertex stride for the dynamic parameter rendering data
 
virtual int32 GetDynamicVertexStride (ERHIFeatureLevel::Type InFeatureLevel) const override
 Get the vertex stride for the dynamic rendering data
 
virtual const FDynamicEmitterReplayDataBase & GetSource () const override
 Returns the source data for this particle system
 
virtual const FDynamicSpriteEmitterReplayDataBase * GetSourceData () const override
 Get the source replay data for this emitter
 
bool GetVertexAndIndexData (void *VertexData, void *DynamicParameterVertexData, void *FillIndexData, FParticleOrder *ParticleOrder, const FVector &InCameraPosition, const FMatrix &InLocalToWorld, uint32 InstanceFactor) const
 Retrieve the vertex and (optional) index required to render this emitter. 更多...
 
bool GetVertexAndIndexDataNonInstanced (void *VertexData, void *DynamicParameterVertexData, void *FillIndexData, FParticleOrder *ParticleOrder, const FVector &InCameraPosition, const FMatrix &InLocalToWorld, int32 NumVerticesPerParticle) const
 Retrieve the vertex and (optional) index required to render this emitter. 更多...
 
void Init (bool bInSelected)
 Initialize this emitter's dynamic rendering data, called after source data has been filled in
 
virtual void UpdateRenderThreadResourcesEmitter (const FParticleSystemSceneProxy *InOwnerProxy) override
 Create the render thread resources for this emitter data 更多...
 
- Public 成员函数 继承自 FDynamicSpriteEmitterDataBase
void BuildViewFillData (const FParticleSystemSceneProxy *Proxy, const FSceneView *InView, int32 InVertexCount, int32 InVertexSize, int32 InDynamicParameterVertexSize, FGlobalDynamicIndexBuffer &DynamicIndexBuffer, FGlobalDynamicVertexBuffer &DynamicVertexBuffer, FGlobalDynamicVertexBuffer::FAllocation &DynamicVertexAllocation, FGlobalDynamicIndexBuffer::FAllocation &DynamicIndexAllocation, FGlobalDynamicVertexBuffer::FAllocation *DynamicParameterAllocation, FAsyncBufferFillData &Data) const
 Set up an buffer for async filling 更多...
 
virtual int32 GetDynamicParameterVertexStride () const
 Get the vertex stride for the dynamic parameter rendering data
 
virtual int32 GetDynamicVertexStride (ERHIFeatureLevel::Type) const
 Get the vertex stride for the dynamic rendering data
 
virtual void GetIndexAllocInfo (int32 &OutNumIndices, int32 &OutStride) const
 Gets the information required for allocating this emitters indices from the global index array.
 
const FMaterialRenderProxy * GetMaterialRenderProxy ()
 Retrieve the material render proxy to use for rendering this emitter. 更多...
 
virtual const FDynamicSpriteEmitterReplayDataBase * GetSourceData () const
 Get the source replay data for this emitter
 
virtual void RenderDebug (const FParticleSystemSceneProxy *Proxy, FPrimitiveDrawInterface *PDI, const FSceneView *View, bool bCrosses) const
 Debug rendering 更多...
 
void SortSpriteParticles (int32 SortMode, bool bLocalSpace, int32 ParticleCount, const uint8 *ParticleData, int32 ParticleStride, const uint16 *ParticleIndices, const FSceneView *View, const FMatrix &LocalToWorld, FParticleOrder *ParticleOrder) const
 Sort the given sprite particles 更多...
 
- Public 成员函数 继承自 FDynamicEmitterDataBase
virtual void GatherSimpleLights (const FParticleSystemSceneProxy *Proxy, const FSceneViewFamily &ViewFamily, FSimpleLightArray &OutParticleLights) const
 Callback from the renderer to gather simple lights that this proxy wants renderered.
 
virtual const FMacroUVOverride & GetMacroUVOverride () const
 Returns the current macro uv override. 更多...
 
virtual const FMaterialRenderProxy * GetMaterialRenderProxy ()=0
 Retrieve the material render proxy to use for rendering this emitter. 更多...
 
virtual const FDynamicEmitterReplayDataBase & GetSource () const =0
 Returns the source data for this particle system
 
FParticleVertexFactoryBase * GetVertexFactory (const FParticleSystemSceneProxy *InOwnerProxy)
 Get the vertex factory for this emitter data, possibly creating it 更多...
 
void * operator new (size_t Size)
 Custom new/delete with recycling
 
virtual void ReleaseRenderThreadResources (const FParticleSystemSceneProxy *InOwnerProxy)
 Release the render thread resources for this emitter data 更多...
 
virtual void UpdateRenderThreadResourcesEmitter (const FParticleSystemSceneProxy *InOwnerProxy)
 Create the render thread resources for this emitter data 更多...
 

Public 属性

FDynamicSpriteEmitterReplayData Source
 The frame source data for this particle system. 更多...
 
FParticleSpriteUniformParameters UniformParameters
 Uniform parameters. 更多...
 
- Public 属性 继承自 FDynamicSpriteEmitterDataBase
uint32 bUsesDynamicParameter:1
 true if the particle emitter utilizes the DynamicParameter module
 
const FMaterialRenderProxy * MaterialResource
 The material render proxy for this emitter
 
- Public 属性 继承自 FDynamicEmitterDataBase
uint32 bSelected:1
 true if this emitter is currently selected
 
uint32 bValid:1
 true if this emitter has valid rendering data
 
TStatId StatID
 Stat id of this object, 0 if nobody asked for it yet
 

额外继承的成员函数

virtual FParticleVertexFactoryBase * BuildVertexFactory (const FParticleSystemSceneProxy *InOwnerProxy)
 Create the vertex factory for this emitter data 更多...
 
- Protected 属性 继承自 FDynamicEmitterDataBase
FParticleVertexFactoryBase * ParticleVertexFactory
 The vertex factory used for rendering
 

详细描述

Dynamic emitter data for sprite emitters

成员函数说明

◆ BuildVertexFactory()

virtual FParticleVertexFactoryBase * FDynamicSpriteEmitterData::BuildVertexFactory ( const FParticleSystemSceneProxy *  InOwnerProxy)
overridevirtual

Create the vertex factory for this emitter data

参数
InOwnerProxyThe proxy that owns this dynamic emitter data

重载 FDynamicEmitterDataBase .

◆ GetVertexAndIndexData()

bool FDynamicSpriteEmitterData::GetVertexAndIndexData ( void *  VertexData,
void *  DynamicParameterVertexData,
void *  FillIndexData,
FParticleOrder *  ParticleOrder,
const FVector &  InCameraPosition,
const FMatrix &  InLocalToWorld,
uint32  InstanceFactor 
) const

Retrieve the vertex and (optional) index required to render this emitter.

Render-thread only

参数
VertexDataThe memory to fill the vertex data into
FillIndexDataThe index data to fill in
ParticleOrderThe (optional) particle ordering to use
InCameraPositionThe position of the camera in world space.
InLocalToWorldTransform from local to world space.
InstanceFactorThe factor to duplicate instances by.
返回
bool true if successful, false if failed

◆ GetVertexAndIndexDataNonInstanced()

bool FDynamicSpriteEmitterData::GetVertexAndIndexDataNonInstanced ( void *  VertexData,
void *  DynamicParameterVertexData,
void *  FillIndexData,
FParticleOrder *  ParticleOrder,
const FVector &  InCameraPosition,
const FMatrix &  InLocalToWorld,
int32  NumVerticesPerParticle 
) const

Retrieve the vertex and (optional) index required to render this emitter.

This version for non-instanced platforms. Render-thread only

参数
VertexDataThe memory to fill the vertex data into
FillIndexDataThe index data to fill in
ParticleOrderThe (optional) particle ordering to use
InCameraPositionThe position of the camera in world space.
InLocalToWorldTransform from local to world space.
返回
bool true if successful, false if failed

◆ UpdateRenderThreadResourcesEmitter()

virtual void FDynamicSpriteEmitterData::UpdateRenderThreadResourcesEmitter ( const FParticleSystemSceneProxy *  InOwnerProxy)
overridevirtual

Create the render thread resources for this emitter data

参数
InOwnerProxyThe proxy that owns this dynamic emitter data
返回
bool true if successful, false if failed

重载 FDynamicEmitterDataBase .

类成员变量说明

◆ Source

FDynamicSpriteEmitterReplayData FDynamicSpriteEmitterData::Source

The frame source data for this particle system.

This is everything needed to represent this this particle system frame. It does not include any transient rendering thread data. Also, for non-simulating 'replay' particle systems, this data may have come straight from disk!

◆ UniformParameters

FParticleSpriteUniformParameters FDynamicSpriteEmitterData::UniformParameters

Uniform parameters.

Most fields are filled in when updates are sent to the rendering thread, some are per-view!


该结构体的文档由以下文件生成: