Owning CPU bounds catalogue; no retained prefab, reader or GPU pointers. @thread Generation-owner affine. Build before registering; prevent mutation during queries. @lifetime Composition host owns capability registration and unregisters before destroying this object. 更多...
#include <PrefabBoundsCatalog.h>
Public 成员函数 | |
| Result< void > | add (const EvpackStaticPrefab &prefab) |
| Admit one loaded prefab snapshot, including its verified package build identity. | |
| Result< std::array< float, 6 > > | localBounds (const AssetRef &asset, const PersistentId &build, PrefabRootPose rootPose=PrefabRootPose::Authored) const override |
| Resolve prefab-local min XYZ/max XYZ at an exact admitted package build identity. | |
Public 成员函数 继承自 eve::IProcgenAssetBounds | |
| virtual | ~IProcgenAssetBounds ()=default |
| Destroy the interface; registration lifetime remains owned by the composition host. | |
额外继承的成员函数 | |
静态 Public 属性 继承自 eve::IProcgenAssetBounds | |
| static constexpr const char * | capabilityName = "IProcgenAssetBounds" |
详细描述
Owning CPU bounds catalogue; no retained prefab, reader or GPU pointers. @thread Generation-owner affine. Build before registering; prevent mutation during queries. @lifetime Composition host owns capability registration and unregisters before destroying this object.
在文件 PrefabBoundsCatalog.h 第 12 行定义.
成员函数说明
◆ add()
| Result< void > eve::asset_graphics::PrefabBoundsCatalog::add | ( | const EvpackStaticPrefab & | prefab | ) |
Admit one loaded prefab snapshot, including its verified package build identity.
- 参数
-
prefab Borrowed only during this call; identities and CPU bounds are copied, no GPU pointers retained.
- 返回
- Success or duplicate-version/missing/budget failure without replacing existing entries. @cost Cheap logarithmic insertion after expensive prefab loading, at most 4096 asset/build versions.
- 备注
- Reimport admits another immutable version; historical references keep their exact bounds.
在文件 PrefabBoundsCatalog.cpp 第 4 行定义.
引用了 bounds, eve::Conflict, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, key, placement, eve::PreconditionViolation, prefab, eve::ReplaceTranslationRotation , 以及 eve::Result< T >::success().
◆ localBounds()
|
overridevirtual |
Resolve prefab-local min XYZ/max XYZ at an exact admitted package build identity.
- 参数
-
asset Canonical asset:// UUID, borrowed only during this call. build Canonical package build UUID; stale builds must fail. rootPose Placement convention shared with renderer preparation; unknown modes must fail.
- 返回
- Owning finite ordered bounds or a structured missing/stale failure. @thread Caller generation thread; owner prevents concurrent catalogue mutation. @reentrant No retained inputs, callbacks or locks; provider must outlive the synchronous bake. @cost Cheap catalogue lookup amortized after explicit loading; never invoked per render frame.
在文件 PrefabBoundsCatalog.cpp 第 22 行定义.
引用了 eve::Authored, build, eve::Conflict, eve::Diagnostic::error(), found, eve::AssetRef::id(), eve::InvalidArgument, eve::NotFound , 以及 eve::ReplaceTranslationRotation.
该类的文档由以下文件生成:
- src/modules/asset/graphics/PrefabBoundsCatalog.h
- src/modules/asset/graphics/PrefabBoundsCatalog.cpp
Public 成员函数 继承自