Logo
Explore Help
Register Sign In
xuanchi/XCEngine
1
1
Fork 0
You've already forked XCEngine
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
f3fc34898aa39f7defe679d31566174c3dc2b403
XCEngine/engine/tools/renderdoc_parser/test.py

9 lines
237 B
Python
Raw Normal View History

【关键节点】OpenGL RenderDoc 捕获修复完成 ## 修复内容 ### OpenGL SwapChain 架构重构 - OpenGLSwapChain 现在从 OpenGLDevice 获取 HDC,统一管理 - OpenGLDevice 拥有 HDC/HGLRC 的完整生命周期 - OpenGLSwapChain::Present() 使用 device->GetPresentationDC() ### API 变更 - GetContext() → GetGLContext() - GetDC() → GetPresentationDC() - Initialize(device*, hwnd, width, height) 新签名 ### 修复的测试 - minimal: rdc 34KB - triangle: rdc 50KB - quad: rdc 3.2MB - sphere: rdc 3.2MB ### 根本原因 之前传 HDC 给 RenderDoc::SetDevice(),需要传 HGLRC 才能正确 hook OpenGL 函数
2026-03-23 21:55:34 +08:00
import sys
sys.path.insert(0, "engine/tools")
from renderdoc_parser import open_capture, get_capture_info, get_frame_overview
open_capture("engine/tools/renderdoc_parser/test.rdc")
print(get_capture_info())
print(get_frame_overview())
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 76ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API