![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ShaderResourceManager.h>
Inheritance diagram for FSlateShaderResourceManager:Public Member Functions | |
| SLATECORE_API | FSlateShaderResourceManager () |
| virtual SLATECORE_API | ~FSlateShaderResourceManager () |
| virtual FSlateShaderResourceProxy * | GetShaderResource (const FSlateBrush &Brush, FVector2f LocalSize, float DrawScale)=0 |
| virtual SLATECORE_API FSlateResourceHandle | GetResourceHandle (const FSlateBrush &Brush, FVector2f LocalSize, float DrawScale) |
| virtual SLATECORE_API FSlateResourceHandle | GetResourceHandle (const FSlateBrush &Brush) |
| virtual FSlateShaderResource * | GetFontShaderResource (int32 InTextureAtlasIndex, FSlateShaderResource *FontTextureAtlas, const class UObject *FontMaterial) |
| virtual ISlateAtlasProvider * | GetTextureAtlasProvider ()=0 |
Protected Member Functions | |
| void | ClearTextureMap () |
| FString | GetResourcePath (const FSlateBrush &InBrush) const |
Protected Attributes | |
| TMap< FName, FSlateShaderResourceProxy * > | ResourceMap |
Base texture manager class used by a Slate renderer to manage texture resources
|
default |
|
virtual |
|
inlineprotected |
|
inlinevirtual |
Reimplemented in FSlateRHIResourceManager.
|
virtual |
Reimplemented in FSlateNullShaderResourceManager.
|
virtual |
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. It will become invalid when a resource is destroyed It is expensive to create a resource so do not do it in time sensitive areas
| Brush | The brush to get a rendering resource handle |
| LocalSize | The unscaled size of the draw element using this brush. This size is used to rescale vector graphics only |
| DrawScale | The scale of the draw element using this brush. This scale is used to rescale vector graphics only |
|
inlineprotected |
|
pure virtual |
Returns a texture associated with the passed in name. Should return nullptr if not found
Implemented in FSlateNullShaderResourceManager, and FSlateRHIResourceManager.
|
pure virtual |
Returns the way to access the texture atlas information from this resource manager
Implemented in FSlateNullShaderResourceManager, and FSlateRHIResourceManager.
|
protected |
Mapping of names to texture pointers