Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Rendering/ShaderResourceManager.h |
Include |
#include "Rendering/ShaderResourceManager.h" |
Source |
/Engine/Source/Runtime/SlateCore/Private/Rendering/ShaderResourceManager.cpp |
virtual FSlateResourceHandle 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. 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
The created resource handle.
Parameter |
Description |
---|---|
Brush |
The brush to get a rendering resource handle |