UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TextureAtlas.h File Reference
#include "CoreMinimal.h"
#include "Containers/List.h"
#include "Layout/SlateRect.h"

Go to the source code of this file.

Classes

struct  FAtlasedTextureSlot
 
class  FSlateTextureAtlas
 
struct  FSlateTextureAtlas::FCopyRowData
 
struct  FAtlasSlotInfo
 
class  ISlateTextureAtlasFactory
 
struct  FAtlasFlushParams
 
class  FSlateFlushableAtlasCache
 
class  ISlateAtlasProvider
 

Macros

#define WITH_ATLAS_DEBUGGING   (WITH_EDITOR || IS_PROGRAM) && !UE_BUILD_SHIPPING
 

Enumerations

enum class  ESlateFontAtlasContentType { Alpha , Color , Msdf }
 
enum  ESlateTextureAtlasPaddingStyle { NoPadding , DilateBorder , PadWithZero }
 
enum class  ESlateTextureAtlasThreadId { Unknown = -1 , Game = 0 , Render = 1 }
 

Functions

SLATECORE_API ESlateTextureAtlasThreadId GetCurrentSlateTextureAtlasThreadId ()
 
SLATECORE_API uint32 GetSlateFontAtlasContentBytesPerPixel (ESlateFontAtlasContentType InContentType)
 

Macro Definition Documentation

◆ WITH_ATLAS_DEBUGGING

#define WITH_ATLAS_DEBUGGING   (WITH_EDITOR || IS_PROGRAM) && !UE_BUILD_SHIPPING

Enumeration Type Documentation

◆ ESlateFontAtlasContentType

Specifies the type of content of font atlas, based on which the texture format is determined.

Enumerator
Alpha 

Alpha channel only (linear, formerly IsGrayscale = true)

Color 

RGBA color data - sRGB color space

Msdf 

Multi-channel signed distance field - linear color space

◆ ESlateTextureAtlasPaddingStyle

Specifies how to handle texture atlas padding (when specified for the atlas). We only support one pixel of padding because we don't support mips or aniso filtering on atlas textures right now.

Enumerator
NoPadding 

Don't pad the atlas.

DilateBorder 

Dilate the texture by one pixel to pad the atlas.

PadWithZero 

One pixel uniform padding border filled with zeros.

◆ ESlateTextureAtlasThreadId

The type of thread that owns a texture atlas - this is the only thread that can safely update it

Enumerator
Unknown 

Owner thread is currently unknown

Game 

Atlas is owned by the game thread

Render 

Atlas is owned by the render thread

Function Documentation

◆ GetCurrentSlateTextureAtlasThreadId()

SLATECORE_API ESlateTextureAtlasThreadId GetCurrentSlateTextureAtlasThreadId ( )

Get the correct atlas thread ID based on the thread we're currently in

◆ GetSlateFontAtlasContentBytesPerPixel()

SLATECORE_API uint32 GetSlateFontAtlasContentBytesPerPixel ( ESlateFontAtlasContentType  InContentType)

Returns the byte size of a single pixel of a font atlas with the specified content type