4 Commits

Author SHA1 Message Date
062984953e 【关键节点】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
257706eddd renderdoc_parser: add .gitignore for binary files 2026-03-23 19:07:41 +08:00
84e7213e86 docs: update README with accurate function signatures 2026-03-23 18:50:16 +08:00
fb01beb959 Add renderdoc_parser: direct-call Python interface for RenderDoc capture analysis
- Convert from MCP protocol layer to direct Python function calls
- 42 functions across 9 modules: session, event, pipeline, resource, data, shader, advanced, performance, diagnostic
- Requires Python 3.6 (renderdoc.pyd is compiled for Python 3.6)
- Fix renderdoc API calls: GetColorBlends, GetStencilFaces, GetViewport(i), GetScissor(i)
- Remove Python 3.10+ type annotations for Python 3.6 compatibility
- Add README.md with full API documentation
- Includes test.py for basic smoke testing
2026-03-23 18:46:20 +08:00