载入中...
搜索中...
未找到
FrameCapture.h
浏览该文件的文档.
56[[nodiscard]] EVENGINE_API_FOUNDATION std::string_view frameAttachmentName(FrameAttachment attachment);
58[[nodiscard]] EVENGINE_API_FOUNDATION Result<FrameAttachment> parseFrameAttachment(std::string_view name);
60[[nodiscard]] EVENGINE_API_FOUNDATION std::string_view frameCapturePhaseName(FrameCapturePhase phase);
#define EVENGINE_API_FOUNDATION_INLINE
仅供"只有内联成员"的类型使用的组宏:拥有者 dllexport,消费方不导入。
Definition Export.h:170
Move-only, checked operation results for the common layer.
Graphics-owned state machine and immutable CPU snapshot authority. @thread Main-thread only; supplied...
Definition FrameCapture.h:133
FrameCaptureStore(const FrameCaptureStore &)=delete
std::function< std::chrono::steady_clock::time_point()> Clock
Definition FrameCapture.h:135
~FrameCaptureStore() override
Destroy CPU snapshots; backend must retire its GPU staging first.
FrameCaptureStore & operator=(const FrameCaptureStore &)=delete
Single-provider frame observation boundary, independent of graphics headers. @thread Engine main thre...
Definition FrameCapture.h:111
virtual Result< FrameCaptureSnapshot > snapshot(std::string_view token)=0
Inspect an immutable CPU snapshot; never waits on a GPU fence.
virtual Result< std::string > request(FrameCaptureRequest request)=0
Queue next normal frame. @cost Readback scales with selected pixel count, once per request.
virtual FrameCaptureCapabilities capabilities() const =0
Inspect backend support, without GPU work.
virtual Result< FrameCapturePhase > release(std::string_view token)=0
Cancel or release a token; in-flight resources remain backend-owned until safe.
virtual void invalidate()=0
Invalidate all tokens on provider or game generation changes.
virtual ~IRenderFrameCapture()=default
Destroy the service after withdrawing its registration.
FrameCapturePhase
Capture progress; Ready is published only after all selected copies complete.
Definition FrameCapture.h:33
@ ReadbackPending
@ Expired
@ Queued
@ Recording
constexpr size_t framePixelBytes(FramePixelFormat format)
Packed CPU bytes per pixel; pure value query, callable on any thread.
Definition FrameCapture.h:46
std::string_view frameAttachmentName(FrameAttachment a)
Stable protocol spelling of an attachment.
Definition FrameCapture.cpp:25
Result< FrameAttachment > parseFrameAttachment(std::string_view name)
Validate a protocol attachment name without inventing a resource.
Definition FrameCapture.cpp:29
@ Cancelled
@ Released
FramePixelFormat
CPU storage encoding; no GPU object escapes the provider.
Definition FrameCapture.h:44
@ Rgba8
@ Depth32Float
@ Bgra8
@ Rgba16Float
FrameAttachment
Stable logical render attachments; Depth and Velocity share storage.
Definition FrameCapture.h:19
@ HwDepth
@ Emissive
@ Depth
@ Velocity
@ Normal
@ Shadow1
@ PbrParams
@ Shadow0
@ Final
@ Shadow2
@ Albedo
std::string_view frameCapturePhaseName(FrameCapturePhase p)
Stable protocol spelling of a progress state.
Definition FrameCapture.cpp:34
Immutable CPU attachment with producer-provided decoding metadata.
Definition FrameCapture.h:71
std::shared_ptr< const std::vector< uint8_t > > bytes
Definition FrameCapture.h:80
std::array< float, 16 > producerMatrix
Definition FrameCapture.h:79
Backend support is explicit; candidates need not be produced in every frame.
Definition FrameCapture.h:99
std::vector< FrameAttachment > attachments
Definition FrameCapture.h:101
Owning request; timeout uses monotonic wall time, never gameplay time.
Definition FrameCapture.h:63
std::vector< FrameAttachment > attachments
Definition FrameCapture.h:64
Owning snapshot metadata; byte storage is immutable and lease-owned.
Definition FrameCapture.h:84
std::array< float, 16 > projectionMatrix
Definition FrameCapture.h:94
std::array< float, 16 > inverseProjection
Definition FrameCapture.h:92
std::vector< FrameCaptureBuffer > buffers
Definition FrameCapture.h:91