FSlateShaderResourceManager

Base texture manager class used by a Slate renderer to manage texture resources

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/ShaderResourceManager.h

Include

#include "Rendering/ShaderResourceManager.h"

Syntax

class FSlateShaderResourceManager

Remarks

Base texture manager class used by a Slate renderer to manage texture resources

Variables

Name Description

Protected variable

TMap< const FAt...

 

AtlasDebugData

Protected variable

TMap< FName, FS...

 

ResourceMap

Mapping of names to texture pointers

Constructors

Destructors

Functions

Name Description

Protected function

void

 

ClearTextureMap()

Public function Virtual

FSlateShader...

 

GetFontShaderResource

(
    int32 InTextureAtlasIndex,
    FSlateShaderResource* FontText...,
    const UObject* FontMaterial
)

Public function Virtual

FSlateResour...

 

GetResourceHandle

(
    const FSlateBrush& Brush
)

Creates a handle to a Slate resource A handle is used as fast path for looking up a rendering resource for a given brush when adding Slate draw elements This can be cached and stored safely in code.

Public function Virtual

FSlateResour...

 

GetResourceHandle

(
    const FSlateBrush& Brush,
    FVector2D LocalSize,
    float DrawScale
)

Creates a handle to a Slate resource A handle is used as fast path for looking up a rendering resource for a given brush when adding Slate draw elements This can be cached and stored safely in code.

Protected function Const

FString

 

GetResourcePath

(
    const FSlateBrush& InBrush
)

Public function

FSlateShader...

 

GetShaderResource

(
    const FSlateBrush& Brush,
    FVector2D LocalSize,
    float DrawScale
)

Returns a texture associated with the passed in name. Should return nullptr if not found

Public function

ISlateAtlasP...

 

GetTextureAtlasProvider()

Returns the way to access the texture atlas information from this resource manager