UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FTexture2DUpdateContext Struct Reference

#include <Texture2DUpdate.h>

Public Types

typedef int32 EThreadType
 

Public Member Functions

 FTexture2DUpdateContext (const UTexture2D *InTexture, EThreadType InCurrentThread)
 
 FTexture2DUpdateContext (const UStreamableRenderAsset *InTexture, EThreadType InCurrentThread)
 
EThreadType GetCurrentThread () const
 

Public Attributes

const UTexture2DTexture = nullptr
 
FTexture2DResourceResource = nullptr
 
TArrayView< const FTexture2DMipMap * > MipsView
 
EThreadType CurrentThread = 0
 

Detailed Description

A context used to update or proceed with the next update step. The texture and resource references could be stored in the update object but are currently kept outside to avoid lifetime management within the object.

Member Typedef Documentation

◆ EThreadType

Constructor & Destructor Documentation

◆ FTexture2DUpdateContext() [1/2]

FTexture2DUpdateContext::FTexture2DUpdateContext ( const UTexture2D InTexture,
EThreadType  InCurrentThread 
)

◆ FTexture2DUpdateContext() [2/2]

FTexture2DUpdateContext::FTexture2DUpdateContext ( const UStreamableRenderAsset InTexture,
EThreadType  InCurrentThread 
)

Member Function Documentation

◆ GetCurrentThread()

EThreadType FTexture2DUpdateContext::GetCurrentThread ( ) const
inline

Member Data Documentation

◆ CurrentThread

EThreadType FTexture2DUpdateContext::CurrentThread = 0

The thread on which the context was created.

◆ MipsView

TArrayView<const FTexture2DMipMap*> FTexture2DUpdateContext::MipsView

The array view of streamable mips from the asset. Takes into account FStreamableRenderResourceState::AssetLODBias and FStreamableRenderResourceState::MaxNumLODs.

◆ Resource

FTexture2DResource* FTexture2DUpdateContext::Resource = nullptr

The current 2D resource of this texture.

◆ Texture

const UTexture2D* FTexture2DUpdateContext::Texture = nullptr

The texture to update, this must be the same one as the one used when creating the FTexture2DUpdate object.


The documentation for this struct was generated from the following files: