TRenderAssetUpdate

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

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/RenderAssetUpdate.h

Include

#include "RenderAssetUpdate.h"

Syntax

template<typename TContext>
class TRenderAssetUpdate : public FRenderAssetUpdate

Remarks

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.

Variables

Name Description

Protected variable

FCallback

 

CancelationCallback

The callback handling the cancellation of the update (only if the update gets cancelled).

Protected variable

EThreadType

 

CancelationThread

The thread on which to call the cancellation of the update (only if the update gets cancelled).

Protected variable

FCallback

 

TaskCallback

The callback that will perform the next step of the update.

Protected variable

EThreadType

 

TaskThread

The thread on which to call the next step of the update, being TaskCallback.

Constructors

Name Description

Public function

TRenderAssetUpdate

(
    UStreamableRenderAsset* InAsse...,
    int32 InRequestedMips
)

Functions

Name Description

Protected function

void

 

ClearCallbacks()

Protected function Virtual Const

void

 

InitContext

(
    FContext& Context
)

Public function

void

 

PushTask

(
    const FContext& Context,
    EThreadType InTaskThread,
    const FCallback& InTaskCallback,
    EThreadType InCancelationThread,
    const FCallback& InCancelationCall...
)

Defines the next step to be executed.

Overridden from FRenderAssetUpdate

Name Description

Public function Virtual Const

EThreadType

 

GetRelevantThread()

Return the thread relevant to the next step of execution.

Protected function Virtual

ETaskState

 

TickInternal

(
    EThreadType InCurrentThread,
    bool bCheckForSuspension
)

Typedefs

Name

Description

FCallback

A callback used to perform a task in the update process.

FContext

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss