FSlateShaderResourceManager

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

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& InBrush
)

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& InBrush
)

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss