700 B
700 B
RenderDocCapture::Get
获取进程级全局 RenderDocCapture 实例。
static RenderDocCapture& Get();
行为说明
当前实现使用函数内静态对象保存单例。Get() 本身不会加载 RenderDoc,也不会自动设置 device 或 window。
参数
- 无。
返回值
RenderDocCapture&- 全局 RenderDoc 封装对象引用。
线程语义
- 单例构造由 C++ 保证线程安全;后续抓帧 API 仍建议在主线程统一使用。
示例
auto& capture = XCEngine::Debug::RenderDocCapture::Get();
capture.Initialize(nullptr, hwnd);