载入中...
搜索中...
未找到
EvpackPointGraphLoader.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
8
9#include <memory>
10#include <string>
11
12namespace eve::procgen {
13class PointGraph;
14class SpatialData;
15}
16
17namespace eve::asset_procgen {
18
22 std::unique_ptr<procgen::PointGraph> graph;
23 std::string outputNode;
25};
26
29public:
31 explicit EvpackPointGraphLoader(const asset::EvpackResourceReader& reader) noexcept
33 : reader_(reader) {}
34
44 [[nodiscard]] Result<LoadedPointGraph> load(
45 const AssetRef& graph, const asset::EvpackCapabilities& capabilities,
47 std::uint64_t maximumDecodedBytes = 64ull * 1024ull * 1024ull) const;
48
49private:
50 const asset::EvpackResourceReader& reader_;
51};
52
53} // namespace eve::asset_procgen
std::string terrain
Typed capability-aware runtime access to admitted packs.
#define EVENGINE_API_ORCHESTRATION
Definition Export.h:111
std::map< std::string, std::vector< std::string > > graph
Definition Package.cpp:59
Stable asset identity backed by PersistentId.
Definition ResourceRef.h:53
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Immutable reader retaining an admitted pack by shared ownership.
Capability-aware loader for compiled eve.pcg-graph/1 execution plans.
EvpackPointGraphLoader(const asset::EvpackResourceReader &reader) noexcept
Bind a borrowed immutable reader that must outlive this loader.
EVENGINE_API_DOMAINS public API.
Definition PointGraph.h:66
Queryable spatial input for procedural pipelines.
Definition SpatialData.h:35
Actual runtime device capabilities used for variant selection.
Definition Evpack.h:92
Result of ordered capability variant selection.
Definition Evpack.h:155
Owning executable graph and its selected output node.
asset::EvpackVariantSelection variant
std::unique_ptr< procgen::PointGraph > graph