载入中...
搜索中...
未找到
eve::asset_graphics::EvpackVolumeTextureLoader类 参考

Capability-aware loader for canonical volume-texture/1 assets. 更多...

#include <EvpackImageLoader.h>

Public 成员函数

 EvpackVolumeTextureLoader (const asset::EvpackResourceReader &reader, graphics::IImageResourceFactory &factory) noexcept
 Bind borrowed reader and image factory; both must outlive this loader.
 
Result< LoadedGraphicsVolumeTexture > load (const AssetRef &volume, const asset::EvpackCapabilities &capabilities, const VolumeTextureAssetLoadLimits &limits={}) const
 Validate definition and EVVOL bulk before atomically uploading one volume.
 

详细描述

Capability-aware loader for canonical volume-texture/1 assets.

在文件 EvpackImageLoader.h 第 102 行定义.

构造及析构函数说明

◆ EvpackVolumeTextureLoader()

eve::asset_graphics::EvpackVolumeTextureLoader::EvpackVolumeTextureLoader ( const asset::EvpackResourceReader &  reader,
graphics::IImageResourceFactory &  factory 
)
inlinenoexcept

Bind borrowed reader and image factory; both must outlive this loader.

Reader.

在文件 EvpackImageLoader.h 第 105 行定义.

成员函数说明

◆ load()

Result< LoadedGraphicsVolumeTexture > eve::asset_graphics::EvpackVolumeTextureLoader::load ( const AssetRef &  volume,
const asset::EvpackCapabilities &  capabilities,
const VolumeTextureAssetLoadLimits &  limits = {} 
) const

Validate definition and EVVOL bulk before atomically uploading one volume.

参数
volumeCanonical asset identity.
capabilitiesRuntime target capabilities.
limitsAllocation and decoded-byte limits.
返回
Borrowed backend texture on success; validation failure performs no upload.
  • @thread Graphics thread, synchronous and non-reentrant; no callbacks.

在文件 EvpackImageLoader.cpp 第 29 行定义.

引用了 eve::asset::Bulk, eve::asset::RuntimeAssetChunk::bytes, eve::asset::RuntimeAssetChunk::chunkId, eve::asset::decodeRuntimeDefinition(), eve::asset::Definition, depth, eve::Diagnostic::error(), eve::Result< T >::failure(), found, height, eve::InvalidArgument, key, limits, object, eve::ParseError, payload, eve::asset::EvpackResourceReader::read(), eve::Result< T >::success(), eve::graphics::IImageResourceFactory::uploadRgba8Volume(), variant, volume , 以及 width.


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