engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 属性 | 所有成员列表
FSlateShaderResourceManager类 参考abstract

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

成员函数说明

◆ GetResourceHandle()

virtual FSlateResourceHandle FSlateShaderResourceManager::GetResourceHandle ( const FSlateBrush &  InBrush)
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

参数
BrushThe brush to get a rendering resource handle
返回
The created resource handle.

◆ GetShaderResource()

virtual FSlateShaderResourceProxy * FSlateShaderResourceManager::GetShaderResource ( const FSlateBrush &  InBrush)
pure virtual

Returns a texture associated with the passed in name.

Should return nullptr if not found


该类的文档由以下文件生成: