FDeferredUpdateResource

[FDeferredUpdateResource](API\Runtime\Engine\FDeferredUpdateResource) for resources that need to be updated after scene rendering has begun (should only be used on the rendering thread)

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/TextureResource.h

Include

#include "TextureResource.h"

Syntax

class FDeferredUpdateResource

Remarks

FDeferredUpdateResource for resources that need to be updated after scene rendering has begun (should only be used on the rendering thread)

Constructors

Name Description

Public function

FDeferredUpdateResource()

Constructor, initializing UpdateListLink.

Functions

Name Description

Protected function

void

 

AddToDeferredUpdateList

(
    bool OnlyUpdateOnce
)

Add this resource to deferred update list

Public function

void

 

FlushDeferredResourceUpdate

(
    FRHICommandListImmediate& RHICmdLi...
)

Performs a deferred resource update on this resource if it exists in the UpdateList.

Protected function

void

 

RemoveFromDeferredUpdateList()

Remove this resource from deferred update list

Public function Static

void

 

ResetNeedsUpdate()

This is reset after all viewports have been rendered

Protected function

void

 

UpdateDeferredResource

(
    FRHICommandListImmediate& RHICmdLi...,
    bool bClearRenderTarget
)

Updates (resolves) the render target texture.

Public function Static

void

 

UpdateResources

(
    FRHICommandListImmediate& RHICmdLi...
)

Iterate over the global list of resources that need to be updated and call UpdateResource on each one.

Constants

Name

Description

bNeedsUpdate

If true then UpdateResources needs to be called

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