Base texture manager class used by a Slate renderer to manage texture resources 更多...
#include <ShaderResourceManager.h>
Public 成员函数 | |
| 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. 更多... | |
| virtual FSlateShaderResourceProxy * | GetShaderResource (const FSlateBrush &InBrush)=0 |
| Returns a texture associated with the passed in name. 更多... | |
| virtual ISlateAtlasProvider * | GetTextureAtlasProvider ()=0 |
| Returns the way to access the texture atlas information from this resource manager | |
Protected 属性 | |
| TMap< FName, FSlateShaderResourceProxy * > | ResourceMap |
| Mapping of names to texture pointers | |
Base texture manager class used by a Slate renderer to manage texture resources
|
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 |
|
pure virtual |
Returns a texture associated with the passed in name.
Should return nullptr if not found