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>
类 | |
| 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]
|
explicit |
Construct a bounded store with an injected monotonic clock.
在文件 FrameCapture.cpp 第 67 行定义.
◆ ~FrameCaptureStore()
|
overridedefault |
Destroy CPU snapshots; backend must retire its GPU staging first.
◆ FrameCaptureStore() [3/3]
|
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()
|
overridevirtual |
Inspect supported attachment classes and memory budget.
在文件 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()
|
overridevirtual |
Revoke all tokens and increment the generation.
在文件 FrameCapture.cpp 第 159 行定义.
引用了 eve::Cancelled , 以及 key.
◆ operator=()
|
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()
|
overridevirtual |
Release a snapshot or cancel an in-flight request.
在文件 FrameCapture.cpp 第 145 行定义.
引用了 eve::Cancelled, collect(), eve::NotFound, eve::Ready, eve::Released, eve::Result< T >::success() , 以及 token.
被这些函数引用 eve::graphics::vulkan::Graphics::InspectionService::release().
◆ request()
|
overridevirtual |
Reserve a request. @cost Selected attachments require per-pixel readback at recording.
在文件 FrameCapture.cpp 第 98 行定义.
引用了 a, eve::FrameCaptureSnapshot::backend, collect(), eve::FrameCaptureStore::Impl::Entry::deadline, eve::frameAttachmentName(), eve::FrameCaptureSnapshot::generation, live, eve::Ready, eve::FrameCaptureStore::Impl::Entry::request, request, eve::FrameCaptureStore::Impl::Entry::snapshot, eve::Result< T >::success(), eve::FrameCaptureRequest::timeout, eve::FrameCaptureSnapshot::token, token , 以及 eve::Unsupported.
被这些函数引用 eve::graphics::vulkan::Graphics::InspectionService::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()
|
overridevirtual |
Return immutable owning metadata without GPU access.
在文件 FrameCapture.cpp 第 138 行定义.
引用了 collect(), eve::NotFound, eve::Result< T >::success() , 以及 token.
被这些函数引用 eve::graphics::vulkan::Graphics::InspectionService::poll(), eve::graphics::vulkan::Graphics::InspectionService::request() , 以及 eve::graphics::vulkan::Graphics::InspectionService::snapshot().
◆ 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().
该类的文档由以下文件生成:
- src/engine/common/FrameCapture.h
- src/engine/common/FrameCapture.cpp
Public 成员函数 继承自