载入中...
搜索中...
未找到
eve::FrameCaptureStore类 参考final

Graphics-owned state machine and immutable CPU snapshot authority. @thread Main-thread only; supplied clock must not reenter the store. @lifetime Backend owns GPU staging independently until its completion signal. 更多...

#include <FrameCapture.h>

类 eve::FrameCaptureStore 继承关系图:
eve::IRenderFrameCapture

类

struct  Impl
 

Public 类型

using Clock = std::function< std::chrono::steady_clock::time_point()>
 

Public 成员函数

 FrameCaptureStore ()
 Construct a bounded store with an injectable monotonic clock.
 
 FrameCaptureStore (Clock clock)
 Construct a bounded store with an injected monotonic clock.
 
 ~FrameCaptureStore () override
 Destroy CPU snapshots; backend must retire its GPU staging first.
 
 FrameCaptureStore (const FrameCaptureStore &)=delete
 
FrameCaptureStore & operator= (const FrameCaptureStore &)=delete
 
void configure (FrameCaptureCapabilities capabilities)
 Set backend support at provider initialization.
 
FrameCaptureCapabilities capabilities () const override
 Inspect supported attachment classes and memory budget.
 
Result< std::string > request (FrameCaptureRequest request) override
 Reserve a request. @cost Selected attachments require per-pixel readback at recording.
 
Result< FrameCaptureSnapshot > snapshot (std::string_view token) override
 Return immutable owning metadata without GPU access.
 
Result< FrameCapturePhase > release (std::string_view token) override
 Release a snapshot or cancel an in-flight request.
 
void invalidate () override
 Revoke all tokens and increment the generation.
 
void collect ()
 Expire queued and ready entries; also called by tool operations.
 
std::optional< std::pair< std::string, FrameCaptureRequest > > queued ()
 Find pending work, or an empty value when idle.
 
Result< void > begin (std::string_view token, uint64_t frameId, size_t bytes)
 Reserve CPU plus GPU storage before recording any commands.
 
Result< void > submitted (std::string_view token)
 Mark a recorded batch submitted to the GPU.
 
Result< void > complete (std::string_view token, FrameCaptureSnapshot snapshot)
 Atomically publish all copied attachments; no partial ready result.
 
Result< void > fail (std::string_view token, std::string reason)
 Publish a terminal diagnostic; retain reservation until retire().
 
void retire (std::string_view token)
 Release staging reservations after GPU completion, including cancelled work.
 
- Public 成员函数 继承自 eve::IRenderFrameCapture
virtual ~IRenderFrameCapture ()=default
 Destroy the service after withdrawing its registration.
 

额外继承的成员函数

- 静态 Public 属性 继承自 eve::IRenderFrameCapture
static constexpr const char * capabilityName = "IRenderFrameCapture"
 

详细描述

Graphics-owned state machine and immutable CPU snapshot authority. @thread Main-thread only; supplied clock must not reenter the store. @lifetime Backend owns GPU staging independently until its completion signal.

在文件 FrameCapture.h 第 133 行定义.

成员类型定义说明

◆ Clock

using eve::FrameCaptureStore::Clock = std::function<std::chrono::steady_clock::time_point()>

在文件 FrameCapture.h 第 135 行定义.

构造及析构函数说明

◆ FrameCaptureStore() [1/3]

eve::FrameCaptureStore::FrameCaptureStore ( )

Construct a bounded store with an injectable monotonic clock.

在文件 FrameCapture.cpp 第 66 行定义.

◆ FrameCaptureStore() [2/3]

eve::FrameCaptureStore::FrameCaptureStore ( Clock  clock)
explicit

Construct a bounded store with an injected monotonic clock.

在文件 FrameCapture.cpp 第 67 行定义.

◆ ~FrameCaptureStore()

eve::FrameCaptureStore::~FrameCaptureStore ( )
overridedefault

Destroy CPU snapshots; backend must retire its GPU staging first.

◆ FrameCaptureStore() [3/3]

eve::FrameCaptureStore::FrameCaptureStore ( const FrameCaptureStore &  )
delete

成员函数说明

◆ begin()

Result< void > eve::FrameCaptureStore::begin ( std::string_view  token,
uint64_t  frameId,
size_t  bytes 
)

Reserve CPU plus GPU storage before recording any commands.

在文件 FrameCapture.cpp 第 174 行定义.

引用了 bytes, collect(), eve::Queued, eve::Recording, eve::Result< T >::success() , 以及 token.

被这些函数引用 eve::graphics::vulkan::Graphics::InspectionService::poll().

◆ capabilities()

FrameCaptureCapabilities eve::FrameCaptureStore::capabilities ( ) const
overridevirtual

Inspect supported attachment classes and memory budget.

实现了 eve::IRenderFrameCapture.

在文件 FrameCapture.cpp 第 76 行定义.

◆ collect()

void eve::FrameCaptureStore::collect ( )

Expire queued and ready entries; also called by tool operations.

在文件 FrameCapture.cpp 第 77 行定义.

引用了 eve::Expired , 以及 key.

被这些函数引用 begin(), complete(), eve::graphics::vulkan::Graphics::InspectionService::poll(), queued(), release(), request() , 以及 snapshot().

◆ complete()

Result< void > eve::FrameCaptureStore::complete ( std::string_view  token,
FrameCaptureSnapshot  snapshot 
)

Atomically publish all copied attachments; no partial ready result.

在文件 FrameCapture.cpp 第 194 行定义.

引用了 b, bytes, collect(), eve::framePixelBytes(), eve::ReadbackPending, eve::Ready, snapshot, eve::Result< T >::success() , 以及 token.

被这些函数引用 eve::graphics::vulkan::Graphics::InspectionService::poll().

◆ configure()

void eve::FrameCaptureStore::configure ( FrameCaptureCapabilities  capabilities)

Set backend support at provider initialization.

在文件 FrameCapture.cpp 第 72 行定义.

引用了 caps.

被这些函数引用 eve::graphics::vulkan::Graphics::Graphics(), eve::graphics::webgpu::Graphics::Graphics() , 以及 eve::graphics::vulkan::Graphics::InspectionService::InspectionService().

◆ fail()

Result< void > eve::FrameCaptureStore::fail ( std::string_view  token,
std::string  reason 
)

Publish a terminal diagnostic; retain reservation until retire().

在文件 FrameCapture.cpp 第 232 行定义.

引用了 eve::Failed, eve::NotFound, eve::Result< T >::success() , 以及 token.

◆ invalidate()

void eve::FrameCaptureStore::invalidate ( )
overridevirtual

Revoke all tokens and increment the generation.

实现了 eve::IRenderFrameCapture.

在文件 FrameCapture.cpp 第 159 行定义.

引用了 eve::Cancelled , 以及 key.

◆ operator=()

FrameCaptureStore & eve::FrameCaptureStore::operator= ( const FrameCaptureStore &  )
delete

引用了 snapshot.

◆ queued()

std::optional< std::pair< std::string, FrameCaptureRequest > > eve::FrameCaptureStore::queued ( )

Find pending work, or an empty value when idle.

在文件 FrameCapture.cpp 第 168 行定义.

引用了 collect(), eve::Queued , 以及 token.

◆ release()

Result< FrameCapturePhase > eve::FrameCaptureStore::release ( std::string_view  token)
overridevirtual

Release a snapshot or cancel an in-flight request.

实现了 eve::IRenderFrameCapture.

在文件 FrameCapture.cpp 第 145 行定义.

引用了 eve::Cancelled, collect(), eve::NotFound, eve::Ready, eve::Released, eve::Result< T >::success() , 以及 token.

被这些函数引用 eve::graphics::vulkan::Graphics::InspectionService::release().

◆ request()

◆ retire()

void eve::FrameCaptureStore::retire ( std::string_view  token)

Release staging reservations after GPU completion, including cancelled work.

在文件 FrameCapture.cpp 第 243 行定义.

引用了 token.

被这些函数引用 eve::graphics::vulkan::Graphics::InspectionService::poll().

◆ snapshot()

Result< FrameCaptureSnapshot > eve::FrameCaptureStore::snapshot ( std::string_view  token)
overridevirtual

◆ submitted()

Result< void > eve::FrameCaptureStore::submitted ( std::string_view  token)

Mark a recorded batch submitted to the GPU.

在文件 FrameCapture.cpp 第 187 行定义.

引用了 eve::ReadbackPending, eve::Recording, eve::Result< T >::success() , 以及 token.

被这些函数引用 eve::graphics::vulkan::Graphics::InspectionService::poll().


该类的文档由以下文件生成: