载入中...
搜索中...
未找到
eve::asset_procgen::EvpackPointGraphLoader类 参考

Capability-aware loader for compiled eve.pcg-graph/1 execution plans. 更多...

#include <EvpackPointGraphLoader.h>

Public 成员函数

 EvpackPointGraphLoader (const asset::EvpackResourceReader &reader) noexcept
 Bind a borrowed immutable reader that must outlive this loader.
 
Result< LoadedPointGraph > load (const AssetRef &graph, const asset::EvpackCapabilities &capabilities, const procgen::SpatialData &terrain, std::uint64_t maximumDecodedBytes=64ull *1024ull *1024ull) const
 Load, validate and bind every declared terrain slot transactionally.
 

详细描述

Capability-aware loader for compiled eve.pcg-graph/1 execution plans.

在文件 EvpackPointGraphLoader.h 第 28 行定义.

构造及析构函数说明

◆ EvpackPointGraphLoader()

eve::asset_procgen::EvpackPointGraphLoader::EvpackPointGraphLoader ( const asset::EvpackResourceReader &  reader)
inlineexplicitnoexcept

Bind a borrowed immutable reader that must outlive this loader.

Reader.

在文件 EvpackPointGraphLoader.h 第 31 行定义.

成员函数说明

◆ load()

Result< LoadedPointGraph > eve::asset_procgen::EvpackPointGraphLoader::load ( const AssetRef &  graph,
const asset::EvpackCapabilities &  capabilities,
const procgen::SpatialData &  terrain,
std::uint64_t  maximumDecodedBytes = 64ull * 1024ull * 1024ull 
) const

Load, validate and bind every declared terrain slot transactionally.

参数
graphStable PCG asset identity.
capabilitiesRuntime platform capabilities.
terrainBorrowed spatial input copied into the resulting graph.
maximumDecodedBytesAggregate definition and plan budget.
返回
Owning executable graph; no caller or runtime state is mutated on failure. @thread Worker-safe when the bound reader is read concurrently.

在文件 EvpackPointGraphLoader.cpp 第 18 行定义.

引用了 eve::Value::asInt(), eve::Value::asString(), eve::asset::Bulk, eve::asset::RuntimeAssetChunk::bytes, eve::asset::RuntimeAssetChunk::chunkId, eve::Conflict, eve::asset::decodeRuntimeDefinition(), eve::asset::Definition, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::Value::getIf(), graph, eve::Value::isInt64(), eve::Value::isString(), eve::asset::RuntimeDefinitionLimits::maximumBytes, node, output, eve::ParseError, payload, eve::asset::EvpackResourceReader::read(), root, slots, eve::Result< T >::success() , 以及 terrain.


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