Unix-friendly CLI for RenderDoc captures
Project description
rdc-cli
Unix-friendly CLI for RenderDoc .rdc captures. Pipe-friendly TSV output, JSON mode, 33 commands, daemon-backed session for interactive exploration.
rdc open capture.rdc # Start session
rdc draws # List draw calls (TSV)
rdc pipeline 142 # Pipeline state at EID 142
rdc shader 142 ps # Pixel shader disassembly
rdc texture 5 -o out.png # Export texture
rdc draws --json | jq '...' # Machine-readable output
rdc close # End session
Install
PyPI (recommended)
pipx install rdc-cli
AUR (Arch Linux)
yay -S rdc-cli-git
This builds the renderdoc Python module automatically — no extra setup needed.
From source
git clone https://github.com/BANANASJIM/rdc-cli.git
cd rdc-cli
pixi install && pixi run sync
Setup renderdoc
rdc requires the renderdoc Python module (renderdoc.cpython-*.so), which is not included in most system packages. Your Python version must match the one used to compile renderdoc.
Build from source
git clone --depth 1 https://github.com/baldurk/renderdoc.git
cd renderdoc
cmake -B build -DENABLE_PYRENDERDOC=ON -DENABLE_QRENDERDOC=OFF
cmake --build build -j$(nproc)
export RENDERDOC_PYTHON_PATH=$PWD/build/lib
Module discovery order
RENDERDOC_PYTHON_PATHenvironment variable/usr/lib/renderdoc,/usr/local/lib/renderdoc- Sibling directory of
renderdoccmdon PATH
Verify
rdc doctor
Commands
Run rdc --help for the full command list, or rdc <command> --help for details.
| Category | Commands |
|---|---|
| Session | open, close, status, goto |
| Inspection | info, stats, events, draws, event, draw, log |
| GPU state | pipeline, bindings, shader, shaders, shader-map |
| Resources | resources, resource, passes, pass, usage |
| Export | texture, rt, buffer |
| Search | search, counters |
| VFS | ls, cat, tree |
| Utility | doctor, completion, capture, count |
All commands support --json for machine-readable output.
Shell completions
rdc completion bash > ~/.local/share/bash-completion/completions/rdc
rdc completion zsh > ~/.zfunc/_rdc
eval "$(rdc completion bash)"
Development
pixi run sync # Install Python deps
pixi run check # lint + typecheck + test (653 tests, 92% coverage)
GPU integration tests require a real renderdoc module:
export RENDERDOC_PYTHON_PATH=/path/to/renderdoc/build/lib
pixi run test-gpu
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rdc_cli-0.2.0.tar.gz.
File metadata
- Download URL: rdc_cli-0.2.0.tar.gz
- Upload date:
- Size: 45.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b03b971c95002bf7d502d32e05e4dc00f96630e6517f37cda42725e375e474f1
|
|
| MD5 |
ec32e05d267fef8dbd881418691637f7
|
|
| BLAKE2b-256 |
1136bc750b051cc67a155eb531722ca6a92032264515f59c9dd9b5a2b919237d
|
Provenance
The following attestation bundles were made for rdc_cli-0.2.0.tar.gz:
Publisher:
ci.yml on BANANASJIM/rdc-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rdc_cli-0.2.0.tar.gz -
Subject digest:
b03b971c95002bf7d502d32e05e4dc00f96630e6517f37cda42725e375e474f1 - Sigstore transparency entry: 975283322
- Sigstore integration time:
-
Permalink:
BANANASJIM/rdc-cli@3b7d101a45f3d920848fdbac14aa2f01c8861d13 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/BANANASJIM
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@3b7d101a45f3d920848fdbac14aa2f01c8861d13 -
Trigger Event:
push
-
Statement type:
File details
Details for the file rdc_cli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: rdc_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 55.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21e5c450e4439c203212312dbd0179eb00d3709b0573bec33ff312ed033fedae
|
|
| MD5 |
dfc89082631850d07c3fe0cf12056d8c
|
|
| BLAKE2b-256 |
f1adf63ec66f9f9d84215688dc8ed9fd5d659593fb22a53f66dd477a0688e00d
|
Provenance
The following attestation bundles were made for rdc_cli-0.2.0-py3-none-any.whl:
Publisher:
ci.yml on BANANASJIM/rdc-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rdc_cli-0.2.0-py3-none-any.whl -
Subject digest:
21e5c450e4439c203212312dbd0179eb00d3709b0573bec33ff312ed033fedae - Sigstore transparency entry: 975283381
- Sigstore integration time:
-
Permalink:
BANANASJIM/rdc-cli@3b7d101a45f3d920848fdbac14aa2f01c8861d13 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/BANANASJIM
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@3b7d101a45f3d920848fdbac14aa2f01c8861d13 -
Trigger Event:
push
-
Statement type: