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.0.tar.gz (94.3 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.0-py3-none-any.whl (124.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rdc_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 94.3 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.0.tar.gz
Algorithm Hash digest
SHA256 b3b9a8a421908770a0b032192c43060e9d5521df667a86e82685ecb9370260d2
MD5 e7a9865e43433cd2e0613305c293bd85
BLAKE2b-256 f32a44d0020a59226e12516d4c600058b4355857c2947c18826280f8719c369c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: rdc_cli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 124.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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eafbb085641efec660cf8506c5ca1c0871309188db895248fb16eb0295221a29
MD5 fe449f6d016e1c9ff3d26b3655667a2c
BLAKE2b-256 d63bc9e1591ffc382096821a7c1e38854ddd2e727ca27e48a2d789afb5fcabb3

See more details on using hashes here.

Provenance

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