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

Public Member Functions

bool IsEvicted (const FOpenGLProgramKey &ProgramKey)
 
void EvictLeastRecentFromLRU ()
 
void EvictMostRecentFromLRU ()
 
void EvictProgramFromLRU (const FOpenGLProgramKey &ProgramKey)
 
void EvictLeastRecentByPredicate (TUniqueFunction< bool(FOpenGLLinkedProgram *)> Pred)
 
 FGLProgramCacheLRU ()
 
bool IsLRUAtCapacity () const
 
int32 GetLRUSize () const
 
void Add (const FOpenGLProgramKey &ProgramKey, FOpenGLLinkedProgram *LinkedProgram)
 
void AddOrReplaceEvicted (const FOpenGLProgramKey &ProgramKey, TUniqueObj< FOpenGLProgramBinary > &&ProgramBinaryData)
 
FOpenGLLinkedProgramFind (const FOpenGLProgramKey &ProgramKey, bool bFindAndCreateEvictedProgram)
 
bool Contains (const FOpenGLProgramKey &ProgramKey) const
 
FORCEINLINE_DEBUGGABLE void Touch (FOpenGLLinkedProgram *LinkedProgram)
 
void Empty ()
 

Public Attributes

TPsoLruCache< FOpenGLProgramKey, FOpenGLLinkedProgram * > LRU
 
TMap< FOpenGLProgramKey, FEvictedGLProgram > EvictedPrograms
 

Constructor & Destructor Documentation

◆ FGLProgramCacheLRU()

FGLProgramCacheLRU::FGLProgramCacheLRU ( )
inline

Member Function Documentation

◆ Add()

void FGLProgramCacheLRU::Add ( const FOpenGLProgramKey ProgramKey,
FOpenGLLinkedProgram LinkedProgram 
)
inline

◆ AddOrReplaceEvicted()

void FGLProgramCacheLRU::AddOrReplaceEvicted ( const FOpenGLProgramKey ProgramKey,
TUniqueObj< FOpenGLProgramBinary > &&  ProgramBinaryData 
)
inline

◆ Contains()

bool FGLProgramCacheLRU::Contains ( const FOpenGLProgramKey ProgramKey) const
inline

◆ Empty()

void FGLProgramCacheLRU::Empty ( )
inline

◆ EvictLeastRecentByPredicate()

void FGLProgramCacheLRU::EvictLeastRecentByPredicate ( TUniqueFunction< bool(FOpenGLLinkedProgram *)>  Pred)
inline

◆ EvictLeastRecentFromLRU()

void FGLProgramCacheLRU::EvictLeastRecentFromLRU ( )
inline

◆ EvictMostRecentFromLRU()

void FGLProgramCacheLRU::EvictMostRecentFromLRU ( )
inline

◆ EvictProgramFromLRU()

void FGLProgramCacheLRU::EvictProgramFromLRU ( const FOpenGLProgramKey ProgramKey)
inline

◆ Find()

FOpenGLLinkedProgram * FGLProgramCacheLRU::Find ( const FOpenGLProgramKey ProgramKey,
bool  bFindAndCreateEvictedProgram 
)
inline

◆ GetLRUSize()

int32 FGLProgramCacheLRU::GetLRUSize ( ) const
inline

◆ IsEvicted()

bool FGLProgramCacheLRU::IsEvicted ( const FOpenGLProgramKey ProgramKey)
inline

◆ IsLRUAtCapacity()

bool FGLProgramCacheLRU::IsLRUAtCapacity ( ) const
inline

◆ Touch()

FORCEINLINE_DEBUGGABLE void FGLProgramCacheLRU::Touch ( FOpenGLLinkedProgram LinkedProgram)
inline

Member Data Documentation

◆ EvictedPrograms

TMap<FOpenGLProgramKey, FEvictedGLProgram> FGLProgramCacheLRU::EvictedPrograms

◆ LRU


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