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

This class provides a framework for loading and unloading the texture/mesh LODs. 更多...

#include <RenderAssetUpdate.h>

+ 类 FRenderAssetUpdate 继承关系图:

类

class  FMipUpdateTask
 An async task used to call tick on the pending update. 更多...
 

Public 类型

enum  ETaskState
 The state of scheduled work for the update process.
 
enum  EThreadType
 A thread type used for doing a part of the update process. 更多...
 

Public 成员函数

virtual void Abort ()
 Cancel the current update. 更多...
 
ETaskState DoLock ()
 Perform a lock on the object, preventing any other thread from processing a pending task in Tick().
 
void DoUnlock (ETaskState PreviousTaskState)
 Release any lock on the object, allowing other thread to modify it.
 
virtual EThreadType GetRelevantThread () const =0
 Return the thread relevant to the next step of execution.
 
bool IsCancelled () const
 Returns whether the task was aborted through Abort() or cancelled. 更多...
 
bool IsCompleted () const
 Returns whether the task has finished executing and there is no other thread possibly accessing it.
 
ENGINE_API void Tick (EThreadType InCurrentThread)
 Do or schedule any pending work for a given texture. 更多...
 

Protected 类型

typedef FAutoDeleteAsyncTask< FMipUpdateTask > FAsyncMipUpdateTask
 The async task to update this object, only one can be active at anytime. 更多...
 

Protected 成员函数

void MarkAsCancelled ()
 Set the task state as cancelled. 更多...
 

Protected 属性

bool bDeferExecution
 Defer execution even if a task pushes a new task on the same thread.
 
bool bIsCancelled
 Whether the task has been cancelled because the update could not proceed or because the user called Abort().
 
FCriticalSection CS
 Critical Section.
 
const FStreamableRenderResourceState ResourceState
 The streamable state requested.
 
int32 ScheduledAsyncTasks
 Number of Ticks scheduled on async tasks.
 
int32 ScheduledGTTasks
 Number of Ticks scheduled on the game thread.
 
int32 ScheduledRenderTasks
 Number of Ticks scheduled on the render thread.
 
const UStreamableRenderAsset * StreamableAsset = nullptr
 The asset updated
 
volatile ETaskState TaskState
 The state of the work yet to be performed to complete the update or cancelation.
 
FThreadSafeCounter TaskSynchronization
 Synchronization used for trigger the task next step execution.
 

详细描述

This class provides a framework for loading and unloading the texture/mesh LODs.

Each thread essentially calls Tick() until the job is done. The object can be safely deleted when IsCompleted() returns true.

成员类型定义说明

◆ FAsyncMipUpdateTask

The async task to update this object, only one can be active at anytime.

It just calls Tick().

成员枚举类型说明

◆ EThreadType

A thread type used for doing a part of the update process.


成员函数说明

◆ Abort()

virtual void FRenderAssetUpdate::Abort ( )
inlinevirtual

Cancel the current update.

Will also attempt to cancel pending IO requests, see FTexture2DStreamIn_IO::Abort(). This is called outside of the update loop when a cancelation is required for external events.

◆ IsCancelled()

bool FRenderAssetUpdate::IsCancelled ( ) const
inline

Returns whether the task was aborted through Abort() or cancelled.


◆ MarkAsCancelled()

void FRenderAssetUpdate::MarkAsCancelled ( )
inlineprotected

Set the task state as cancelled.

This is internally called in Abort() and when any critical conditions are not met when performing the update.

◆ Tick()

ENGINE_API void FRenderAssetUpdate::Tick ( EThreadType  InCurrentThread)

Do or schedule any pending work for a given texture.

参数
InAsset- the texture/mesh being updated, this must be the same texture/mesh as the texture/mesh used to create this object.
InCurrentThread- the thread from which the tick is being called. Using TT_None ensures that no work will be immediately performed.

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