载入中...
搜索中...
未找到
eve::asset_physics::EvpackClothModelLoader类 参考

Capability-aware adapter from admitted .evpack data to ClothModel. 更多...

#include <EvpackClothModel.h>

Public 成员函数

 EvpackClothModelLoader (const asset::EvpackResourceReader &reader) noexcept
 Bind a borrowed immutable reader.
 
Result< LoadedClothModel > load (const AssetRef &model, const asset::EvpackCapabilities &capabilities, std::uint64_t maximumDecodedBytes=256ull *1024ull *1024ull) const
 Decode one self-contained eve.cloth-model/1 definition atomically.
 

详细描述

Capability-aware adapter from admitted .evpack data to ClothModel.

在文件 EvpackClothModel.h 第 20 行定义.

构造及析构函数说明

◆ EvpackClothModelLoader()

eve::asset_physics::EvpackClothModelLoader::EvpackClothModelLoader ( const asset::EvpackResourceReader &  reader)
inlineexplicitnoexcept

Bind a borrowed immutable reader.

参数
readerReader that must outlive this adapter.

在文件 EvpackClothModel.h 第 26 行定义.

成员函数说明

◆ load()

Result< LoadedClothModel > eve::asset_physics::EvpackClothModelLoader::load ( const AssetRef &  model,
const asset::EvpackCapabilities &  capabilities,
std::uint64_t  maximumDecodedBytes = 256ull * 1024ull * 1024ull 
) const

Decode one self-contained eve.cloth-model/1 definition atomically.

参数
modelStable asset identity.
capabilitiesRuntime platform and backend capabilities.
maximumDecodedBytesAggregate decoded byte budget.
返回
Owning validated model; no runtime cloth is created on failure. @thread May run on a loading thread; the reader and package are immutable. @reentrancy Invokes no callbacks.

在文件 EvpackClothModel.cpp 第 10 行定义.

引用了 eve::asset::decodeRuntimeDefinition(), eve::asset::Definition, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::physics::ClothModel::fromValue(), limits, eve::asset::RuntimeDefinitionLimits::maximumBytes, model, eve::ParseError, payload, eve::asset::EvpackResourceReader::read() , 以及 eve::Result< T >::success().


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