载入中...
搜索中...
未找到
eve::asset_graphics::EvpackImageLoader类 参考
Capability-aware adapter from admitted EVIMG assets to backend textures. 更多...
#include <EvpackImageLoader.h>
Public 成员函数 | |
| EvpackImageLoader (const asset::EvpackResourceReader &reader, graphics::IImageResourceFactory &factory) noexcept | |
| Bind borrowed reader and image factory; both must outlive this loader. | |
| Result< LoadedGraphicsImage > | load (const AssetRef &image, const asset::EvpackCapabilities &capabilities, const ImageAssetLoadLimits &limits={}) const |
| Validate and upload image/3 mip assets, retaining image/2 single-level compatibility. | |
详细描述
Capability-aware adapter from admitted EVIMG assets to backend textures.
在文件 EvpackImageLoader.h 第 65 行定义.
构造及析构函数说明
◆ EvpackImageLoader()
|
inlinenoexcept |
Bind borrowed reader and image factory; both must outlive this loader.
Reader.
在文件 EvpackImageLoader.h 第 68 行定义.
成员函数说明
◆ load()
| Result< LoadedGraphicsImage > eve::asset_graphics::EvpackImageLoader::load | ( | const AssetRef & | image, |
| const asset::EvpackCapabilities & | capabilities, | ||
| const ImageAssetLoadLimits & | limits = {} |
||
| ) | const |
Validate and upload image/3 mip assets, retaining image/2 single-level compatibility.
- 返回
- Borrowed backend texture on success; validation failure performs no upload.
在文件 EvpackImageLoader.cpp 第 17 行定义.
引用了 eve::asset::decodeEvpackImage(), eve::Result< T >::failure(), image, limits, eve::Result< T >::success(), eve::graphics::IImageResourceFactory::uploadRgba8(), eve::graphics::IImageResourceFactory::uploadRgba8MipChain(), value , 以及 variant.
该类的文档由以下文件生成:
- src/modules/asset/graphics/EvpackImageLoader.h
- src/modules/asset/graphics/EvpackImageLoader.cpp