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

#include <SlateRHITextureAtlas.h>

+ Inheritance diagram for FSlateTextureAtlasRHI:

Public Member Functions

 FSlateTextureAtlasRHI (uint32 InWidth, uint32 InHeight, ESlateTextureAtlasPaddingStyle PaddingStyle, bool bUpdatesAfterInitialization)
 
 ~FSlateTextureAtlasRHI ()
 
virtual FSlateShaderResourceGetAtlasTexture () const override
 
virtual void ReleaseResources () override
 
void UpdateTexture_RenderThread (FSlateTextureData *RenderThreadData)
 
virtual void ConditionalUpdateTexture ()
 
- Public Member Functions inherited from FSlateTextureAtlas
SLATECORE_API FSlateTextureAtlas (uint32 InWidth, uint32 InHeight, uint32 InBytesPerPixel, ESlateTextureAtlasPaddingStyle InPaddingStyle, bool bInUpdatesAfterInitialization)
 
virtual SLATECORE_API ~FSlateTextureAtlas ()
 
SLATECORE_API void EmptyAtlasData ()
 
SLATECORE_API const FAtlasedTextureSlotAddTexture (uint32 TextureWidth, uint32 TextureHeight, const TArray< uint8 > &Data)
 
uint32 GetWidth () const
 
uint32 GetHeight () const
 
SLATECORE_API void MarkTextureDirty ()
 

Additional Inherited Members

- Protected Member Functions inherited from FSlateTextureAtlas
SLATECORE_API const FAtlasedTextureSlotFindSlotForTexture (uint32 InWidth, uint32 InHeight)
 
void AddFreeSlot (uint32 InX, uint32 InY, uint32 InWidth, uint32 InHeight)
 
SLATECORE_API void InitAtlasData ()
 
SLATECORE_API void CopyRow (const FCopyRowData &CopyRowData)
 
SLATECORE_API void ZeroRow (const FCopyRowData &CopyRowData)
 
SLATECORE_API void CopyDataIntoSlot (const FAtlasedTextureSlot *SlotToCopyTo, const TArray< uint8 > &Data)
 
- Static Protected Member Functions inherited from FSlateTextureAtlas
static int32 GetFreeSlotSearchIndex (uint32 InWidth, uint32 InHeight)
 
- Protected Attributes inherited from FSlateTextureAtlas
TArray< uint8AtlasData
 
FAtlasedTextureSlotAtlasUsedSlots
 
TArray< FAtlasedTextureSlot * > AtlasEmptySlotsMap
 
uint32 AtlasWidth
 
uint32 AtlasHeight
 
uint32 BytesPerPixel
 
ESlateTextureAtlasPaddingStyle PaddingStyle
 
bool bNeedsUpdate
 
bool bUpdatesAfterInitialization
 
ESlateTextureAtlasThreadId AtlasOwnerThread
 

Detailed Description

Represents a texture atlas for use with RHI.

Constructor & Destructor Documentation

◆ FSlateTextureAtlasRHI()

FSlateTextureAtlasRHI::FSlateTextureAtlasRHI ( uint32  InWidth,
uint32  InHeight,
ESlateTextureAtlasPaddingStyle  PaddingStyle,
bool  bUpdatesAfterInitialization 
)

Creates and initializes a new instance.

Parameters
InWidth
InHeight
PaddingStyle

◆ ~FSlateTextureAtlasRHI()

FSlateTextureAtlasRHI::~FSlateTextureAtlasRHI ( )

Destructor.

Member Function Documentation

◆ ConditionalUpdateTexture()

void FSlateTextureAtlasRHI::ConditionalUpdateTexture ( )
virtual

Updates the texture used for rendering if needed

Implements FSlateTextureAtlas.

◆ GetAtlasTexture()

FSlateShaderResource * FSlateTextureAtlasRHI::GetAtlasTexture ( ) const
overridevirtual

Gets the atlas' underlying texture resource.

Returns
The texture resource.

Implements FSlateTextureAtlas.

◆ ReleaseResources()

void FSlateTextureAtlasRHI::ReleaseResources ( )
overridevirtual

Releases rendering resources of this texture

Implements FSlateTextureAtlas.

◆ UpdateTexture_RenderThread()

void FSlateTextureAtlasRHI::UpdateTexture_RenderThread ( FSlateTextureData RenderThreadData)

Updates the texture on the render thread.

Parameters
RenderThreadData

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