4 Commits

Author SHA1 Message Date
alvinshi
5e2a01e379 fix(renderdoc): compute PSO, REPL capture path cache, drop unused imports
- pipeline: use GetComputePipelineObject for ShaderStage.Compute in disasm, cbuffer, reflection export, dump/diff

- cli: invalidate cached CaptureHandle when capture_path changes (REPL -c)

- capture: remove unused struct/json/Tuple imports

Made-with: Cursor
2026-03-25 20:59:28 +08:00
alvinshi
90c730ddf4 fix(renderdoc): address follow-up PR #133 review (Copilot round 2)
- SKILL: list prompt-toolkit in requires.

- setup: include_package_data=True, zip_safe=False (repo convention).

- REPL: pass obj into nested cli.main; only set capture_path when -c provided.

- capture metadata: degraded bool; driver from localRenderer/vendor not bool.

- counters: validate GPUCounter ids, return error + valid_counter_ids.

- mesh: read bounded index buffer slice for indexed draws.

- HARNESS: document python -m subprocess test strategy.

Made-with: Cursor
2026-03-25 20:31:50 +08:00
alvinshi
ca8d7e130d fix(renderdoc): apply review fixes for RenderDoc harness
- Remove bundled native/ binaries and _bootstrap sys.path injection; use system renderdoc module.

- setup.py: README via Path.read_text(utf-8), add prompt-toolkit, drop native from package_data.

- capture: refcount InitialiseReplay/ShutdownReplay for multi-capture; idempotent close; clearer module error.

- CLI: skip result_callback cleanup while REPL active; close handles in repl() finally.

- pipeline: Optional[Dict] for dump_shader_reflection when refl is None.

- Tests: remove sys.path hacks; subprocess uses harness cwd via Path.

- Docs: HARNESS pipeline commands + Python 3.10; TEST.md unit totals (45) and diff test lines.

- gitignore: ignore cli_anything/renderdoc/native/.

Made-with: Cursor
2026-03-25 20:31:50 +08:00
Levi
17e9aae519 feat: add RenderDoc CLI harness for GPU frame capture analysis
Add CLI harness for RenderDoc GPU frame debugger with support for:
- Frame capture loading and draw call browsing
- Pipeline state inspection and shader export
- Texture inspection, pixel picking, and output saving
- Mesh data viewer and resource listing
- Performance counter collection
- Pipeline state diff between draw calls
- REPL mode with rich formatted output
- 59 tests (45 unit + 14 e2e)

Squashed from 4 commits by alvinshi.
2026-03-25 20:31:49 +08:00