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

#include <SlateVectorGraphicsCache.h>

+ Inheritance diagram for FSlateVectorGraphicsCache:

Public Member Functions

SLATECORE_API FSlateVectorGraphicsCache (TSharedPtr< ISlateTextureAtlasFactory > InAtlasFactory)
 
SLATECORE_API FSlateShaderResourceProxyGetShaderResource (const FSlateBrush &Brush, FVector2f LocalSize, float DrawScale)
 
SLATECORE_API void UpdateCache ()
 
SLATECORE_API void ConditionalFlushCache ()
 
SLATECORE_API void ReleaseResources (bool bWaitForRelease=false)
 
SLATECORE_API void DeleteResources ()
 
virtual void RequestFlushCache (const FString &Reason) override
 
int32 GetNumAtlasPages () const
 
FSlateShaderResourceGetAtlasPageResource (const int32 InIndex) const
 
bool IsAtlasPageResourceAlphaOnly (const int32 InIndex) const
 
const FSlateTextureAtlasGetAtlas (const int32 InIndex) const
 
- Public Member Functions inherited from FSlateFlushableAtlasCache
 FSlateFlushableAtlasCache (const FAtlasFlushParams *InFlushParams)
 
virtual ~FSlateFlushableAtlasCache ()
 
void ResetFlushCounters ()
 
void UpdateFlushCounters (int32 NumGrayscale, int32 NumColor, int32 NumMsdf, int32 NumNonAtlased)
 

Constructor & Destructor Documentation

◆ FSlateVectorGraphicsCache()

FSlateVectorGraphicsCache::FSlateVectorGraphicsCache ( TSharedPtr< ISlateTextureAtlasFactory InAtlasFactory)

Member Function Documentation

◆ ConditionalFlushCache()

SLATECORE_API void FSlateVectorGraphicsCache::ConditionalFlushCache ( )

◆ DeleteResources()

void FSlateVectorGraphicsCache::DeleteResources ( )

◆ GetAtlas()

const FSlateTextureAtlas * FSlateVectorGraphicsCache::GetAtlas ( const int32  InIndex) const
inline

◆ GetAtlasPageResource()

FSlateShaderResource * FSlateVectorGraphicsCache::GetAtlasPageResource ( const int32  InIndex) const
inline

◆ GetNumAtlasPages()

int32 FSlateVectorGraphicsCache::GetNumAtlasPages ( ) const
inline

◆ GetShaderResource()

FSlateShaderResourceProxy * FSlateVectorGraphicsCache::GetShaderResource ( const FSlateBrush Brush,
FVector2f  LocalSize,
float  DrawScale 
)

◆ IsAtlasPageResourceAlphaOnly()

bool FSlateVectorGraphicsCache::IsAtlasPageResourceAlphaOnly ( const int32  InIndex) const
inline

◆ ReleaseResources()

void FSlateVectorGraphicsCache::ReleaseResources ( bool  bWaitForRelease = false)

◆ RequestFlushCache()

void FSlateVectorGraphicsCache::RequestFlushCache ( const FString &  Reason)
overridevirtual

Called when this cache must be flushed

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

Implements FSlateFlushableAtlasCache.

◆ UpdateCache()

void FSlateVectorGraphicsCache::UpdateCache ( )

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