UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSlateFlushableAtlasCache Class Referenceabstract

#include <TextureAtlas.h>

+ Inheritance diagram for FSlateFlushableAtlasCache:

Public Member Functions

 FSlateFlushableAtlasCache (const FAtlasFlushParams *InFlushParams)
 
virtual ~FSlateFlushableAtlasCache ()
 
virtual void RequestFlushCache (const FString &Reason)=0
 
void ResetFlushCounters ()
 
void UpdateFlushCounters (int32 NumGrayscale, int32 NumColor, int32 NumMsdf, int32 NumNonAtlased)
 

Detailed Description

Base class for any atlas cache which has flushing logic to keep the number of in use pages small

Constructor & Destructor Documentation

◆ FSlateFlushableAtlasCache()

FSlateFlushableAtlasCache::FSlateFlushableAtlasCache ( const FAtlasFlushParams InFlushParams)

◆ ~FSlateFlushableAtlasCache()

virtual FSlateFlushableAtlasCache::~FSlateFlushableAtlasCache ( )
inlinevirtual

Member Function Documentation

◆ RequestFlushCache()

virtual void FSlateFlushableAtlasCache::RequestFlushCache ( const FString &  Reason)
pure virtual

Called when this cache must be flushed

Parameters
ReasonA string explaining the reason the cache was flushed (generally for debugging or logging

Implemented in FSlateFontCache, and FSlateVectorGraphicsCache.

◆ ResetFlushCounters()

void FSlateFlushableAtlasCache::ResetFlushCounters ( )

Resets all counters to their initial state to start over flushing logic

◆ UpdateFlushCounters()

void FSlateFlushableAtlasCache::UpdateFlushCounters ( int32  NumGrayscale,
int32  NumColor,
int32  NumMsdf,
int32  NumNonAtlased 
)

Increments counters that determine if a flush is needed. If a flush is needed RequestFlushCache will be called from here


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