engine
 
载入中...
搜索中...
未找到
类 | Public 成员函数 | 所有成员列表
FTickableObjectRenderThread类 参考abstract

This class provides common registration for render thread tickable objects. 更多...

#include <TickableObjectRenderThread.h>

+ 类 FTickableObjectRenderThread 继承关系图:

类

struct  FRenderingThreadTickableObjectsArray
 Static array of tickable objects that are ticked from rendering thread 更多...
 

Public 成员函数

 FTickableObjectRenderThread (bool bRegisterImmediately=true, bool bInHighFrequency=false)
 Registers this instance with the static array of tickable objects. 更多...
 
virtual TStatId GetStatId () const =0
 return the stat id to use for this tickable
 
virtual bool IsTickable () const =0
 Pure virtual that must be overloaded by the inheriting class. 更多...
 
virtual bool NeedsRenderingResumedForRenderingThreadTick () const
 Used to determine if a rendering thread tickable object must have rendering in a non-suspended state during it's Tick function. 更多...
 
void Register (bool bIsRenderingThreadObject=false)
 Registers the object for ticking. 更多...
 
virtual void Tick (float DeltaTime)=0
 Pure virtual that must be overloaded by the inheriting class. 更多...
 
virtual ~FTickableObjectRenderThread ()
 Removes this instance from the static array of tickable objects.
 

详细描述

This class provides common registration for render thread tickable objects.

It is an abstract base class requiring you to implement the Tick() method.

构造及析构函数说明

◆ FTickableObjectRenderThread()

FTickableObjectRenderThread::FTickableObjectRenderThread ( bool  bRegisterImmediately = true,
bool  bInHighFrequency = false 
)
inline

Registers this instance with the static array of tickable objects.


参数
bRegisterImmediatelytrue if the object should be registered immediately.

成员函数说明

◆ IsTickable()

virtual bool FTickableObjectRenderThread::IsTickable ( ) const
pure virtual

Pure virtual that must be overloaded by the inheriting class.

It is used to determine whether an object is ready to be ticked. This is required for example for all UObject derived classes as they might be loaded async and therefore won't be ready immediately.

返回
true if class is ready to be ticked, false otherwise.

在 FShaderPipelineCache, TRenderResourcePool< ResourceType, ResourcePoolPolicy, ResourceCreationArguments >, TRenderResourcePool< FVertexBufferAndSRV, FBoneBufferPoolPolicy, FSharedPoolPolicyData::CreationArguments >, TRenderResourcePool< FVertexBufferAndSRV, FClothBufferPoolPolicy, FSharedPoolPolicyData::CreationArguments >, TXRLoadingScreenBase< SplashType > , 以及 TXRLoadingScreenBase< FSplashData > 内被实现.

◆ NeedsRenderingResumedForRenderingThreadTick()

virtual bool FTickableObjectRenderThread::NeedsRenderingResumedForRenderingThreadTick ( ) const
inlinevirtual

Used to determine if a rendering thread tickable object must have rendering in a non-suspended state during it's Tick function.

返回
true if the RHIResumeRendering should be called before tick if rendering has been suspended

被 FShaderPipelineCache, TRenderResourcePool< ResourceType, ResourcePoolPolicy, ResourceCreationArguments >, TRenderResourcePool< FVertexBufferAndSRV, FBoneBufferPoolPolicy, FSharedPoolPolicyData::CreationArguments > , 以及 TRenderResourcePool< FVertexBufferAndSRV, FClothBufferPoolPolicy, FSharedPoolPolicyData::CreationArguments > 重载.

◆ Register()

void FTickableObjectRenderThread::Register ( bool  bIsRenderingThreadObject = false)
inline

Registers the object for ticking.

参数
bIsRenderingThreadObjecttrue if this object is owned by the rendering thread.

◆ Tick()

virtual void FTickableObjectRenderThread::Tick ( float  DeltaTime)
pure virtual

Pure virtual that must be overloaded by the inheriting class.

It will be called from within LevelTick.cpp after ticking all actors or from the rendering thread (depending on bIsRenderingThreadObject)

参数
DeltaTimeGame time passed since the last call.

在 FShaderPipelineCache, TRenderResourcePool< ResourceType, ResourcePoolPolicy, ResourceCreationArguments >, TRenderResourcePool< FVertexBufferAndSRV, FBoneBufferPoolPolicy, FSharedPoolPolicyData::CreationArguments >, TRenderResourcePool< FVertexBufferAndSRV, FClothBufferPoolPolicy, FSharedPoolPolicyData::CreationArguments >, TXRLoadingScreenBase< SplashType > , 以及 TXRLoadingScreenBase< FSplashData > 内被实现.


该类的文档由以下文件生成: