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

Dynamic emitter data for Mesh emitters 更多...

#include <ParticleHelper.h>

+ 类 FDynamicMeshEmitterData 继承关系图:

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) const override
 Get the vertex stride for the dynamic rendering data
 
void GetInstanceData (void *InstanceData, void *DynamicParameterData, void *PrevTransformBuffer, const FParticleSystemSceneProxy *Proxy, const FSceneView *View, uint32 InstanceFactor) const
 Retrieve the instance data required to render this emitter. 更多...
 
void GetParticleTransform (const FBaseParticle &InParticle, const FParticleSystemSceneProxy *Proxy, const FSceneView *View, FMatrix &OutTransformMat) const
 Helper function for retrieving the particle transform. 更多...
 
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
 
void Init (bool bInSelected, const FParticleMeshEmitterInstance *InEmitterInstance, UStaticMesh *InStaticMesh, bool InUseStaticMeshLODs, float InLODSizeScale, ERHIFeatureLevel::Type InFeatureLevel)
 Initialize this emitter's dynamic rendering data, called after source data has been filled in
 
virtual void ReleaseRenderThreadResources (const FParticleSystemSceneProxy *InOwnerProxy) override
 Release the render thread resources for this emitter data 更多...
 
void SetupVertexFactory (FMeshParticleVertexFactory *InVertexFactory, const FStaticMeshLODResources &LODResources, uint32 LODIdx) const
 Initialize this emitter's vertex factory with the vertex buffers from the mesh's rendering data.
 
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 属性

uint32 bApplyParticleRotationAsSpin:1
 If true, apply 'sprite' particle rotation about the orientation axis (direction mesh is pointing). 更多...
 
uint32 bApplyPreRotation:1
 If true, apply the 'pre-rotation' values to the mesh.
 
uint32 bFaceCameraDirectionRatherThanPosition:1
 If true, all camera facing options will point the mesh against the camera's view direction rather than pointing at the cameras location. 更多...
 
uint32 bUseCameraFacing:1
 If true, then use the camera facing options supplied. 更多...
 
uint32 bUseMeshLockedAxis:1
 If true, then use the locked axis setting supplied. 更多...
 
uint8 CameraFacingOption
 The EMeshCameraFacingOption setting to use if bUseCameraFacing is true.
 
uint32 MeshTypeDataOffset
 offset to FMeshTypeDataPayload
 
FDynamicMeshEmitterReplayData Source
 The frame source data for this particle system. 更多...
 
- 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 Mesh emitters

成员函数说明

◆ BuildVertexFactory()

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

Create the vertex factory for this emitter data

参数
InOwnerProxyThe proxy that owns this dynamic emitter data

重载 FDynamicEmitterDataBase .

◆ GetInstanceData()

void FDynamicMeshEmitterData::GetInstanceData ( void *  InstanceData,
void *  DynamicParameterData,
void *  PrevTransformBuffer,
const FParticleSystemSceneProxy *  Proxy,
const FSceneView *  View,
uint32  InstanceFactor 
) const

Retrieve the instance data required to render this emitter.

Render-thread only

参数
InstanceDataThe memory to fill the vertex data into
DynamicParameterDataThe memory to fill the vertex dynamic parameter data into
PrevTransformBufferThe memory to fill the vertex prev transform data into. May be null
ProxyThe scene proxy for the particle system that owns this emitter
ViewThe scene view being rendered
InstanceFactorThe factor to duplicate instances by

◆ GetParticleTransform()

void FDynamicMeshEmitterData::GetParticleTransform ( const FBaseParticle &  InParticle,
const FParticleSystemSceneProxy *  Proxy,
const FSceneView *  View,
FMatrix &  OutTransformMat 
) const

Helper function for retrieving the particle transform.

参数
InParticleThe particle being processed
ProxyThe scene proxy for the particle system that owns this emitter
ViewThe scene view being rendered
OutTransformThe InstanceToWorld transform matrix for the particle

◆ ReleaseRenderThreadResources()

virtual void FDynamicMeshEmitterData::ReleaseRenderThreadResources ( const FParticleSystemSceneProxy *  InOwnerProxy)
overridevirtual

Release the render thread resources for this emitter data

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

重载 FDynamicEmitterDataBase .

◆ UpdateRenderThreadResourcesEmitter()

virtual void FDynamicMeshEmitterData::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 .

类成员变量说明

◆ bApplyParticleRotationAsSpin

uint32 FDynamicMeshEmitterData::bApplyParticleRotationAsSpin

If true, apply 'sprite' particle rotation about the orientation axis (direction mesh is pointing).

If false, apply 'sprite' particle rotation about the camera facing axis.

◆ bFaceCameraDirectionRatherThanPosition

uint32 FDynamicMeshEmitterData::bFaceCameraDirectionRatherThanPosition

If true, all camera facing options will point the mesh against the camera's view direction rather than pointing at the cameras location.

If false, the camera facing will point to the cameras position as normal.

◆ bUseCameraFacing

uint32 FDynamicMeshEmitterData::bUseCameraFacing

If true, then use the camera facing options supplied.

Trumps all other settings.

◆ bUseMeshLockedAxis

uint32 FDynamicMeshEmitterData::bUseMeshLockedAxis

If true, then use the locked axis setting supplied.

Trumps locked axis module and/or TypeSpecific mesh settings.

◆ Source

FDynamicMeshEmitterReplayData FDynamicMeshEmitterData::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!


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