Skip to main content

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

  1. RENDERDOC_PYTHON_PATH environment variable
  2. /usr/lib/renderdoc, /usr/local/lib/renderdoc
  3. Sibling directory of renderdoccmd on 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rdc_cli-0.2.0.tar.gz (45.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rdc_cli-0.2.0-py3-none-any.whl (55.0 kB view details)

Uploaded Python 3

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

Hashes for rdc_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b03b971c95002bf7d502d32e05e4dc00f96630e6517f37cda42725e375e474f1
MD5 ec32e05d267fef8dbd881418691637f7
BLAKE2b-256 1136bc750b051cc67a155eb531722ca6a92032264515f59c9dd9b5a2b919237d

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdc_cli-0.2.0.tar.gz:

Publisher: ci.yml on BANANASJIM/rdc-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for rdc_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21e5c450e4439c203212312dbd0179eb00d3709b0573bec33ff312ed033fedae
MD5 dfc89082631850d07c3fe0cf12056d8c
BLAKE2b-256 f1adf63ec66f9f9d84215688dc8ed9fd5d659593fb22a53f66dd477a0688e00d

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdc_cli-0.2.0-py3-none-any.whl:

Publisher: ci.yml on BANANASJIM/rdc-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page