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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback