UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMaterialInterfaceReleaseTask Class Reference

Public Member Functions

 FMaterialInterfaceReleaseTask (TStrongObjectPtr< UMaterialInterface > *InMaterialInterface)
 
void DoTask (ENamedThreads::Type CurrentThread, const FGraphEventRef &MyCompletionGraphEvent)
 
ENamedThreads::Type GetDesiredThread ()
 
FORCEINLINE TStatId GetStatId () const
 

Static Public Member Functions

static ESubsequentsMode::Type GetSubsequentsMode ()
 

Public Attributes

TStrongObjectPtr< UMaterialInterface > * MaterialInterface
 

Detailed Description

Helper task used to release the strong object reference to the material interface on the game thread The release has to happen on the gamethread and the material interface can't be GCd while the PSO collection is happening because it touches the material resources

Constructor & Destructor Documentation

◆ FMaterialInterfaceReleaseTask()

FMaterialInterfaceReleaseTask::FMaterialInterfaceReleaseTask ( TStrongObjectPtr< UMaterialInterface > *  InMaterialInterface)
inlineexplicit

Member Function Documentation

◆ DoTask()

void FMaterialInterfaceReleaseTask::DoTask ( ENamedThreads::Type  CurrentThread,
const FGraphEventRef MyCompletionGraphEvent 
)
inline

◆ GetDesiredThread()

ENamedThreads::Type FMaterialInterfaceReleaseTask::GetDesiredThread ( )
inline

◆ GetStatId()

FORCEINLINE TStatId FMaterialInterfaceReleaseTask::GetStatId ( ) const
inline

◆ GetSubsequentsMode()

static ESubsequentsMode::Type FMaterialInterfaceReleaseTask::GetSubsequentsMode ( )
inlinestatic

Member Data Documentation

◆ MaterialInterface

TStrongObjectPtr<UMaterialInterface>* FMaterialInterfaceReleaseTask::MaterialInterface

The documentation for this class was generated from the following file: