Skip to main content

Unix-friendly CLI for RenderDoc .rdc captures

Project description

 _____  _____   _____
|  __ \|  __ \ / ____|
| |__) | |  | | |
|  _  /| |  | | |
| | \ \| |__| | |____
|_|  \_\_____/ \_____|  cli

PyPI Python License Commands Tests Coverage

Pipe-friendly TSV output, JSON mode, 51 commands, daemon-backed session for interactive exploration of RenderDoc .rdc captures.

Full documentation →

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 debug 142 ps 400 300        # debug pixel shader at (400,300)
rdc assert-pixel 142 400 300 \
    --expect 0.5,0.0,0.0,1.0   # CI pixel assertion
rdc draws --json | jq '...'     # machine-readable output
rdc close                       # end session

Install

PyPI (recommended)

pipx install rdc-cli
# build renderdoc Python module (one-time, ~3 min, needs cmake/ninja/python3)
curl -fsSL https://raw.githubusercontent.com/BANANASJIM/rdc-cli/master/scripts/build-renderdoc.sh | bash
rdc doctor   # verify installation

AUR (Arch Linux — builds renderdoc Python module automatically)

yay -S rdc-cli-git

From source

git clone https://github.com/BANANASJIM/rdc-cli.git
cd rdc-cli
pixi install && pixi run sync

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
Debug debug, pixel, pick-pixel, tex-stats
Shader Edit shader-build, shader-replace, shader-restore, shader-restore-all, shader-encodings
Resources resources, resource, passes, pass, usage
Export texture, rt, buffer, mesh, snapshot
Search search, counters
Assertions assert-pixel, assert-state, assert-image, assert-count, assert-clean
VFS ls, cat, tree
Utility doctor, completion, capture, count, script, diff

All commands support --json for machine-readable output.

Shell completions

rdc completion bash > ~/.local/share/bash-completion/completions/rdc
rdc completion zsh  > ~/.zfunc/_rdc
rdc completion fish > ~/.config/fish/completions/rdc.fish

Development

pixi run sync                 # install deps + activate git hooks
pixi run check                # lint + typecheck + test (1729 tests, 95.51% coverage)
pixi run verify               # full packaging verification (19 checks)

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.3.1.tar.gz (94.4 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.3.1-py3-none-any.whl (124.1 kB view details)

Uploaded Python 3

File details

Details for the file rdc_cli-0.3.1.tar.gz.

File metadata

  • Download URL: rdc_cli-0.3.1.tar.gz
  • Upload date:
  • Size: 94.4 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.3.1.tar.gz
Algorithm Hash digest
SHA256 631c8713bd3a0b3ca324c4bd7a1cebb47706300053ef83d0ebaba385bb4a330d
MD5 f39426e859b8f10788649f1d50485c8a
BLAKE2b-256 d4402b1a6c58f559f109b06cfe4c889bb8a8a8f0da307880bf9a68e4da12a8c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdc_cli-0.3.1.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.3.1-py3-none-any.whl.

File metadata

  • Download URL: rdc_cli-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 124.1 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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6287e521f9c05bfddbf93e96ede7f7471ab61968165c6aaede033fbb85f0c1b9
MD5 6f88f6c8764b4d70d20f06679cf8ab97
BLAKE2b-256 1276128e9ebd43a71b5a320306108a03a69f8087d7392146e098f9a8ceffd750

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdc_cli-0.3.1-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