Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/FSlateShaderResourceManager
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FSlateResourceHandle GetResourceHandle
(
const FSlateBrush& Brush |
Rendering/ShaderResourceManager.h | ||
virtual FSlateResourceHandle 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. | Rendering/ShaderResourceManager.h |
GetResourceHandle(const FSlateBrush &)
| Name | GetResourceHandle |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Rendering/ShaderResourceManager.h |
| Include Path | #include "Rendering/ShaderResourceManager.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Rendering/ShaderResourceManager.cpp |
virtual FSlateResourceHandle GetResourceHandle
(
const FSlateBrush & Brush
)
GetResourceHandle(const FSlateBrush &, FVector2f, float)
Description
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
| Name | GetResourceHandle |
| Type | function |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Rendering/ShaderResourceManager.h |
| Include Path | #include "Rendering/ShaderResourceManager.h" |
| Source | /Engine/Source/Runtime/SlateCore/Private/Rendering/ShaderResourceManager.cpp |
virtual FSlateResourceHandle GetResourceHandle
(
const FSlateBrush & Brush,
FVector2f LocalSize,
float DrawScale
)
The created resource handle.
Parameters
| Name | Remarks |
|---|---|
| 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 |