Module-internal artifact surface for CPU build and optional publication. 更多...
#include <ProcgenArtifacts.h>
静态 Public 成员函数 | |
| static eve::Result< GeneratedArtifact > | buildArtifact (Procgen &module, const std::string &recipeId, ProcgenParamsHandleRef params, ArtifactId id) |
| Build an owning backend-neutral CPU artifact for a mesh recipe. | |
| static eve::Result< ArtifactPublishReceipt > | publishArtifact (Procgen &module, const std::string &recipeId, ProcgenParamsHandleRef params, ArtifactId id, ArtifactPublishOptions options={}) |
| Build then transactionally publish through requested optional adapters. | |
| static const ArtifactStore & | artifactStore (const Procgen &module) noexcept |
| Borrow the compatibility facade's published CPU artifact store. | |
| static ArtifactId | nextCompatibilityArtifactId (Procgen &module) noexcept |
| Allocates the next compatibility artifact id for legacy mesh-handle paths. | |
详细描述
Module-internal artifact surface for CPU build and optional publication.
- 备注
- Friend of
Procgenso the owningArtifactStorestays behind the pimpl.
在文件 ProcgenArtifacts.h 第 24 行定义.
成员函数说明
◆ artifactStore()
|
staticnoexcept |
Borrow the compatibility facade's published CPU artifact store.
- 参数
-
module Procgen owner.
- 返回
- Store owned by
modulefor the module lifetime.
在文件 Procgen.cpp 第 1478 行定义.
◆ buildArtifact()
|
static |
Build an owning backend-neutral CPU artifact for a mesh recipe.
- 参数
-
module Procgen owner that resolves params.recipeId Registered mesh recipe id. params Deterministic generation parameters; must not be stale. id Non-nil identity for this artifact instance.
- 返回
- Generated CPU artifact or a structured diagnostic.
在文件 Procgen.cpp 第 1268 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::procgen::generateMeshArtifact(), params, eve::procgen::Procgen::resolve(), eve::StaleHandle , 以及 view.
被这些函数引用 eve::procgen::Procgen::buildMeshHandle() , 以及 publishArtifact().
◆ nextCompatibilityArtifactId()
|
staticnoexcept |
Allocates the next compatibility artifact id for legacy mesh-handle paths.
- 参数
-
module Procgen owner whose sequence counter advances.
- 返回
- Deterministic child identity under the legacy facade root.
在文件 Procgen.cpp 第 1287 行定义.
引用了 eve::detail::Id128< Tag >::nil(), eve::detail::Id128< Tag >::parse() , 以及 root.
◆ publishArtifact()
|
static |
Build then transactionally publish through requested optional adapters.
- 参数
-
module Procgen owner that resolves paramsand owns the store.recipeId Registered mesh recipe id. params Deterministic generation parameters; must not be stale. id Non-nil identity for this artifact instance. options Scene, graphics and physics adapters required by this call.
- 返回
- Publication receipt or an Unsupported/validation/adapter diagnostic.
- 备注
- Must run on the main/simulation thread. A failure leaves the store unchanged.
在文件 Procgen.cpp 第 1278 行定义.
引用了 buildArtifact(), eve::Result< T >::failure(), options, params , 以及 eve::procgen::ArtifactPublisher::publish().
该结构体的文档由以下文件生成:
- src/modules/procgen/ProcgenArtifacts.h
- src/modules/procgen/Procgen.cpp