Files
XCEngine/docs/api/XCEngine/Debug/RenderDocCapture/Get.md

700 B
Raw Blame History

RenderDocCapture::Get

获取进程级全局 RenderDocCapture 实例。

static RenderDocCapture& Get();

行为说明

当前实现使用函数内静态对象保存单例。Get() 本身不会加载 RenderDoc也不会自动设置 devicewindow

参数

  • 无。

返回值

  • RenderDocCapture& - 全局 RenderDoc 封装对象引用。

线程语义

  • 单例构造由 C++ 保证线程安全;后续抓帧 API 仍建议在主线程统一使用。

示例

auto& capture = XCEngine::Debug::RenderDocCapture::Get();
capture.Initialize(nullptr, hwnd);

相关文档