载入中...
搜索中...
未找到
EvpackTerrainLoader.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
10
11namespace eve::asset_procgen {
12
15 std::uint32_t maximumDimension = 32768;
16 std::uint64_t maximumSamples = 268'435'456;
17 std::uint64_t maximumDecodedBytes = 1024ull * 1024ull * 1024ull;
18};
19
29
32public:
34 explicit EvpackTerrainLoader(const asset::EvpackResourceReader& reader) noexcept
36 : reader_(reader) {}
37
43 [[nodiscard]] Result<LoadedTerrain> load(
44 const AssetRef& terrain, const asset::EvpackCapabilities& capabilities,
45 const TerrainAssetLoadLimits& limits = {}) const;
46
47private:
48 const asset::EvpackResourceReader& reader_;
49};
50
51} // namespace eve::asset_procgen
std::string terrain
Typed capability-aware runtime access to admitted packs.
#define EVENGINE_API_ORCHESTRATION
Definition Export.h:111
const AssetImportLimits & limits
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 decoder from eve.terrain/1 to procgen terrain data.
EvpackTerrainLoader(const asset::EvpackResourceReader &reader) noexcept
Bind a borrowed immutable reader that must outlive this loader.
In-memory terrain heightmap: a dense float grid (row-major, index = y * width + x) materialized from ...
Definition Heightmap.h:21
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 heightmap plus queryable procgen spatial representation.
asset::EvpackVariantSelection variant
Explicit resource limits applied before terrain allocation.