| IRefCountedObject
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/RenderAssetUpdate.h |
Include |
#include "RenderAssetUpdate.h" |
class FRenderAssetUpdate : public IRefCountedObject
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.
Name | Description | ||
---|---|---|---|
|
bDeferExecution |
Defer execution even if a task pushes a new task on the same thread. |
|
|
bIsCancelled |
Whether the task has been cancelled because the update could not proceed or because the user called Abort(). |
|
|
CS |
Critical Section. |
|
|
PendingFirstMip |
The index of mip that will end as being the first mip of the intermediate (future) texture/mesh. |
|
|
RequestedMips |
The total number of mips of the intermediate (future) texture/mesh. |
|
|
ScheduledAsyncTasks |
Number of Ticks scheduled on async tasks. |
|
|
ScheduledGTTasks |
Number of Ticks scheduled on the game thread. |
|
|
ScheduledRenderTasks |
Number of Ticks scheduled on the render thread. |
|
|
StreamableAsset |
The asset updated |
|
|
TaskState |
The state of the work yet to be performed to complete the update or cancelation. |
|
|
TaskSynchronization |
Synchronization used for trigger the task next step execution. |
Name | Description | |
---|---|---|
|
FRenderAssetUpdate ( |
Name | Description | |
---|---|---|
|
~FRenderAssetUpdate() |
Name | Description | ||
---|---|---|---|
|
Abort() |
Cancel the current update. |
|
|
DDCIsInvalid() |
Returns whether DDC of this texture needs to be regenerated. |
|
|
DoLock() |
Perform a lock on the object, preventing any other thread from processing a pending task in Tick(). |
|
|
DoUnlock ( |
Release any lock on the object, allowing other thread to modify it. |
|
|
GetNumRequestedMips() |
Get the number of requested mips for this update, ignoring cancellation attempts. |
|
|
GetRelevantThread() |
Return the thread relevant to the next step of execution. |
|
|
IsCancelled() |
Returns whether the task was aborted through Abort() or cancelled. |
|
|
IsCompleted() |
Returns whether the task has finished executing and there is no other thread possibly accessing it. |
|
|
IsLocked() |
||
|
MarkAsCancelled() |
Set the task state as cancelled. |
|
|
ScheduleAsyncTask() |
||
|
ScheduleGTTask() |
||
|
ScheduleRenderTask() |
||
|
Tick ( |
Do or schedule any pending work for a given texture. |
|
|
TickInternal ( |
Name |
Description |
|
---|---|---|
|
FMipUpdateTask |
An async task used to call tick on the pending update. |
Name |
Description |
|
---|---|---|
|
ETaskState |
The state of scheduled work for the update process. |
|
EThreadType |
A thread type used for doing a part of the update process. |
Name |
Description |
---|---|
FAsyncMipUpdateTask |
The async task to update this object, only one can be active at anytime. |