载入中...
搜索中...
未找到
eve::procgen::ProcgenArtifactOps结构体 参考

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 Procgen so the owning ArtifactStore stays behind the pimpl.

在文件 ProcgenArtifacts.h 第 24 行定义.

成员函数说明

◆ artifactStore()

const ArtifactStore & eve::procgen::ProcgenArtifactOps::artifactStore ( const Procgen &  module)
staticnoexcept

Borrow the compatibility facade's published CPU artifact store.

参数
moduleProcgen owner.
返回
Store owned by module for the module lifetime.

在文件 Procgen.cpp 第 1478 行定义.

◆ buildArtifact()

eve::Result< GeneratedArtifact > eve::procgen::ProcgenArtifactOps::buildArtifact ( Procgen &  module,
const std::string &  recipeId,
ProcgenParamsHandleRef  params,
ArtifactId  id 
)
static

Build an owning backend-neutral CPU artifact for a mesh recipe.

参数
moduleProcgen owner that resolves params.
recipeIdRegistered mesh recipe id.
paramsDeterministic generation parameters; must not be stale.
idNon-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()

ArtifactId eve::procgen::ProcgenArtifactOps::nextCompatibilityArtifactId ( Procgen &  module)
staticnoexcept

Allocates the next compatibility artifact id for legacy mesh-handle paths.

参数
moduleProcgen 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.

被这些函数引用 eve::procgen::Procgen::buildMeshHandle().

◆ publishArtifact()

eve::Result< ArtifactPublishReceipt > eve::procgen::ProcgenArtifactOps::publishArtifact ( Procgen &  module,
const std::string &  recipeId,
ProcgenParamsHandleRef  params,
ArtifactId  id,
ArtifactPublishOptions  options = {} 
)
static

Build then transactionally publish through requested optional adapters.

参数
moduleProcgen owner that resolves params and owns the store.
recipeIdRegistered mesh recipe id.
paramsDeterministic generation parameters; must not be stale.
idNon-nil identity for this artifact instance.
optionsScene, 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().


该结构体的文档由以下文件生成: