rdc-cli
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "rdc-cli":https://skillpi.com/zh/skills/deepskill-cc2c2d271f10bb0ae175f63185955c8bd7aec0af8c8b86c11197b55b22fc885d。安装前核对上游来源和版本:https://github.com/BANANASJIM/rdc-cli。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于处理 RenderDoc 捕获文件(.rdc)、分析 GPU 帧、追踪着色器、检查绘制调用或对 GPU 捕获运行 CI 断言。触发短语包括“打开捕获”“rdc 文件”“renderdoc”“着色器调试”“像素追踪”“绘制调用”“GPU 帧”“断言像素”“导出渲染目标”。
介绍来源: third_party · BANANASJIM · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: rdc-cli
description: >
Use this skill when working with RenderDoc capture files (.rdc), analyzing GPU frames,
tracing shaders, inspecting draw calls, or running CI assertions against GPU captures.
Trigger phrases: "open capture", "rdc file", ".rdc", "renderdoc", "shader debug",
"pixel trace", "draw calls", "GPU frame", "assert pixel", "export render target".rdc-cli Skill
Overview
rdc-cli is a Unix-friendly command-line interface for RenderDoc GPU captures. It provides a daemon-backed architecture using JSON-RPC over TCP, a virtual filesystem (VFS) path namespace for navigating capture internals, and composable commands designed for shell pipelines, scripting, and CI assertions.
Install: pip install rdc-cli (requires a local RenderDoc build with Python bindings).
Check setup: rdc doctor.
Core Workflow
Follow this session lifecycle for any capture analysis task:
- Open a capture:
- Local:
rdc open path/to/capture.rdc - Remote replay (Proxy):
rdc open capture.rdc --proxy host:port - Split thin-client:
rdc open --connect host:port --token TOKEN - Android device:
rdc open capture.rdc --android [--serial SERIAL]
- Local:
- Inspect metadata:
rdc info,rdc stats,rdc events - Navigate the VFS:
rdc ls /,rdc ls /textures,rdc cat /draws/0/pipeline/summary - Analyze specifics:
rdc shaders,rdc pipeline,rdc resources,rdc bindings - Debug shaders:
rdc debug pixel EID X Y,rdc debug vertex EID VTXID,rdc debug thread EID GX GY GZ - Export data:
rdc texture ID -o out.png,rdc rt EID,rdc buffer ID -o buf.bin,rdc cbuffer EID --stage ps --binding 0,rdc log - Close the session:
rdc close
Session Management
- Default session name:
default(or value of$RDC_SESSION). - Override per-command:
rdc --session myname open capture.rdc. - Check active session:
rdc status. - Navigate to a specific event:
rdc goto EID.
Output Formats
All list/table commands default to TSV (tab-separated values) with a header row, suitable for cut, awk, and sort.
| Flag | Format | Use Case |
|---|---|---|
| (default) | TSV with header | Human reading, shell pipelines |
--no-header |
TSV without header | Piping to awk/cut without stripping |
--json |
JSON array | Structured processing with jq |
--jsonl |
Newline-delimited JSON | Streaming processing, large datasets |
-q / --quiet |
Minimal (single column) | Extracting IDs for loops |
Example -- get all draw call EIDs as a plain list:
rdc draws -q
Example -- JSON pipeline with jq:
rdc events --json | jq '.[] | select(.type == "DrawIndexed")'
Render Pass Analysis
List passes (Phase 8 columns)
rdc passes outputs 6 columns: NAME, DRAWS, DISPATCHES, TRIANGLES, BEGIN_EID, END_EID.
rdc passes # TSV table
rdc passes --json # includes load_ops/store_ops per pass
rdc passes --deps --table # per-pass READS/WRITES/LOAD/STORE
Inspect a single pass
rdc pass <name> shows enriched attachments: resource name, format, dimensions, and load/store ops.
rdc pass GBuffer
rdc pass GBuffer --json
rdc pass 0 # by 0-based index
Detect dead render targets
rdc unused-targets finds render targets written but never consumed by visible output. Columns: ID, NAME, WRITTEN_BY, WAVE.
rdc unused-targets # TSV
rdc unused-targets --json # structured
rdc unused-targets -q # one resource ID per line (for scripting)
Frame statistics
rdc stats outputs three sections: Per-Pass Breakdown, Top Draws by Triangle Count, and Largest Resources.
rdc stats # all three sections
rdc stats --json # includes largest_resources array
GL/GLES/D3D11 captures without native BeginPass/EndPass markers get synthetic pass inference automatically — no extra flags needed.
Common Tasks
Find all draw calls
rdc draws
rdc draws --pass "GBuffer" --json
Trace a pixel
rdc debug pixel 1024 512 384 # EID first, then X Y
rdc debug pixel 1024 512 384 --json # structured output
rdc debug pixel 1024 512 384 --trace # full step-by-step trace
Search shaders by name or source
rdc search "main" # regex search over shader disassembly
rdc search "Sample" --stage ps -C 2
rdc shaders --name "GBuffer*"
Export render targets
rdc rt EID -o output.png
rdc rt EID --depth -o depth.png # export the raw depth attachment
rdc texture ID -o tex.png # export a texture by resource ID (PNG)
Decode a constant buffer
rdc cbuffer EID --stage ps --binding 0 # decode to JSON
rdc cbuffer EID --stage vs --binding 0 --raw -o cbuffer.bin
Browse VFS paths
rdc ls /
rdc ls /textures -l
rdc tree /draws/42/pipeline --depth 2 # pipeline state lives under /draws/<eid>/pipeline/
rdc cat /draws/42/pipeline/summary
rdc cat /events/42
Inspect pipeline state at a draw call
rdc goto EID
rdc pipeline --json
rdc bindings --json
Compare state before/after a pass
rdc goto 100 && rdc pipeline --json > before.json
rdc goto 200 && rdc pipeline --json > after.json
diff before.json after.json
CI Assertions
rdc-cli provides assertion commands that exit non-zero on failure, designed for automated testing pipelines:
| Command | Purpose |
|---|---|
rdc assert-pixel EID X Y --expect "R G B A" |
Assert pixel RGBA (4 space-separated floats) at EID/coordinates |
rdc assert-clean |
Assert no validation errors in capture |
rdc assert-count <what> --expect N [--op CHOICE] |
Assert a capture metric (e.g. draws) satisfies a comparison |
rdc assert-state EID KEY-PATH --expect VALUE |
Assert pipeline state value at EID matches expected |
rdc assert-image EXPECTED ACTUAL [--threshold FLOAT] |
Compare two image files pixel-by-pixel |
Example CI script:
#!/bin/bash
set -e
rdc open test_capture.rdc
rdc assert-clean
rdc assert-count draws --expect 10 --op ge
rdc assert-pixel 1024 256 256 --expect "1.0 0.0 0.0 1.0"
rdc close
Shader Edit-Replay
Modify and replay shaders without recompiling the application:
rdc shader-encodings # list available encodings
rdc shader EID ps --source > s.frag # extract shader source
# ... edit s.frag ...
rdc shader-build s.frag --stage ps # compile; prints the built shader ID
rdc shader-replace EID ps --with <ID> # hot-swap built shader ID into capture
rdc shader-restore EID ps # revert single shader (STAGE required)
rdc shader-restore-all # revert all modifications
Remote Capture Workflow
rdc-cli wraps renderdoccmd remoteserver to support PC-to-PC remote captures.
rdc serve [--port PORT] [--allow-ips CIDR] [--no-exec] [--daemon]— launch remoteserver on the target machinerdc remote connect <host:port>— save remote connection staterdc remote list— enumerate capturable apps on the remoterdc remote capture <app> -o frame.rdc [--args ...] [--frame N] [--keep-remote]— inject, capture, and transfer back.--keep-remoteskips the transfer and prints the remote path; replay it withrdc open <path> --proxy host:port. (The CLI's ownnext:hint currently still references the deprecated--remotealias for--proxy.)rdc open frame.rdc --proxy host:port— remote-backed replay (daemon local, GPU remote)
remote_state.py persists the last connected host so subsequent rdc remote list can omit --url.
Split Mode (thin client)
Split mode decouples CLI and daemon — run the daemon where the GPU is and connect from a machine that doesn't need the renderdoc module. Useful when the analyst's laptop is macOS/Windows and the GPU is on a Linux server.
- Server side:
rdc open capture.rdc --listen [ADDR[:PORT]]- Prints these four labeled lines to stdout (among other status output):
host: ADDR,port: PORT,token: TOKEN,connect with: rdc open --connect ADDR:PORT --token TOKEN
- Prints these four labeled lines to stdout (among other status output):
- Client side:
rdc open --connect HOST:PORT --token TOKEN
SSH tunnel tip (use the port from --listen, or rdc serve's default 39920): ssh -L 39920:localhost:39920 user@server, then connect to localhost:39920.
Every normal command (rdc draws, rdc rt, ...) works transparently in Split mode. Binary exports use file_read RPC with raw binary frames — no base64 overhead.
Android Workflow
- Prerequisite: the RenderDoc APK must already be installed on the host via
rdc setup-renderdoc --android(upstream) or--android --arm(ARM PS fork for Mali).rdc android setupdoes not push the APK itself. rdc android setup [--serial SERIAL]— starts remoteserver on the device via RenderDoc's Device Protocol API (StartRemoteServer), sets adb forward, saves remote state.rdc android capture <activity> [--serial SERIAL] [--timeout N] [--port PORT] [-o out.rdc]— GPU debug layers based capture (works around EMUI/Mali injection limitations).rdc android stop [--serial SERIAL]— stops the remoteserver and cleans state.- For remote replay:
rdc open frame.rdc --android [--serial SERIAL]— this is the only form that rewrites the savedadb://SERIALto the forwardedlocalhost:PORT. Passing--proxy adb://SERIALdirectly bypasses the rewrite and is known to crash the daemon (seesession.py:_resolve_android_url).
Hardware matrix: Adreno is the happy path; Mali may need the ARM Performance Studio fork (see rdc setup-renderdoc --android --arm).
Troubleshooting
Always run rdc doctor first. It reports status for renderdoc module, renderdoccmd, adb, Android APK, and platform-specific toolchains. Only the missing-renderdoc-module case emits a dedicated build-hint block; other checks surface inline hints in the detail column, so read each failing line rather than relying on a uniform next-step list.
Common failure categories (conceptual, not literal error strings — map from the text the tool actually emits):
- network / connect failed — remote host unreachable, firewall, wrong port. Verify
rdc serveis running on the target. - version mismatch — host and target RenderDoc versions differ. Re-run
rdc setup-renderdocorrdc setup-renderdoc --androidto align. - inject failed / ident=0 — injection blocked (Android EMUI, macOS SIP, Windows privilege). Run
rdc doctorand check the platform-specific detail. - OpenCapture unsupported — local GPU can't replay the capture's API surface; switch to
--proxyor--androidremote replay. - duplicate Vulkan layer —
rdc doctorwarns when more than oneVK_LAYER_RENDERDOC_CaptureVulkan layer is registered (a system-installed RenderDoc plus the rdc-managed one create a split-brain). The loader then picks one non-deterministically and capture can silently time out; unregister the extra manifest so only one remains. - not loaded / no session — forgot
rdc open; userdc statusto inspect.
For long operations (large capture transfers, remote replay init), the CLI has limited progress feedback — this is a known UX gap, not a hang. Wait up to the --timeout value before concluding failure.
Command Reference
For the complete list of all commands with their arguments, options, types, and defaults, see references/commands-quick-ref.md.
版本历史
-
v0.7.0
GitHub ↗
原版更新说明
## Security fixes - Keep the daemon running after malformed unauthenticated requests and connection resets. Validate request envelopes before dispatch, and require authentication before a shutdown request can stop the daemon. - Upgrade Pillow to 13.0.0 and update the Python dependency lockfile. - Update the static documentation site's Astro and build dependencies to patched versions, retaining the existing Tailwind styles. - Require dependency auditing to succeed before package publication, and align AUR dependency requirements with the Python package. ## Compatibility and upgrade **Python 3.11 or newer is now required.** Pillow 13 does not support Python 3.10. Upgrade Python before upgrading rdc-cli; if the Python minor version changes, rebuild or reinstall the matching RenderDoc Python bindings. The documentation development environment now requires Node.js 22.23.4 or newer; CI uses Node.js 24. This does not add a Node.js requirement for the CLI. ## Validation The security fixes include regression coverage using isolated TCP daemon subprocesses. The local complete suite passed 3,096 tests with 92.35% coverage; documentation build and validation passed 407 checks. The audited Python and documentation lockfiles had no known advisory matches at release preparation time. Release CI passed Linux, Windows and macOS tests and wheel/sdist installation checks. A fresh Python 3.11 installation from PyPI was also verified. **Full changelog:** https://github.com/BANANASJIM/rdc-cli/compare/v0.6.3...v0.7.0
-
v0.6.3
GitHub ↗
原版更新说明
## What's Changed * fix(texture): export requested 3d texture slice by @Misaka-Mikoto-Tech in https://github.com/BANANASJIM/rdc-cli/pull/271 ## New Contributors * @Misaka-Mikoto-Tech made their first contribution in https://github.com/BANANASJIM/rdc-cli/pull/271 **Full Changelog**: https://github.com/BANANASJIM/rdc-cli/compare/v0.6.2...v0.6.3
-
v0.6.2
GitHub ↗
原版更新说明
## What's Changed * fix(daemon): support Texture3D depth slices by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/269 * fix(ci): update audited dependencies by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/270 **Full Changelog**: https://github.com/BANANASJIM/rdc-cli/compare/v0.6.1...v0.6.2
-
v0.6.1
GitHub ↗
原版更新说明
## What's Changed * fix(cbuffer): handle D3D raw export and vs-in fallback by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/265 * fix mesh vs-in position selection by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/266 * fix(shader): decode reflected value lanes by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/267 **Full Changelog**: https://github.com/BANANASJIM/rdc-cli/compare/v0.6.0...v0.6.1
-
v0.6.0
GitHub ↗
原版更新说明
## What's Changed * fix(remote): repair startup deadlock, idle cleanup, and android adb:// crash by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/238 * feat(remote): support texture/RT/depth export in remote replay mode by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/237 * feat(export): add --depth flag to rdc rt for depth target export by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/239 * feat(remote): decode R11G11B10F and R9G9B9E5 packed HDR formats in remote export by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/240 * fix(export): unify depth export decode path across local and remote modes by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/242 * test(discover): isolate fallback tests from RENDERDOC_PYTHON_PATH env leak by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/243 * chore: archive openspec changes for #237 #239 #240 by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/241 * chore: archive openspec changes for #242 #243 by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/244 * fix(remote): normalize localhost to 127.0.0.1 for IPv4-only remote servers by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/245 * chore: archive openspec change for #245 by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/246 * chore: remove dead request builders, recv_binary, and query_both_sync by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/247 * fix(diff): emit event_count from stats RPC so summary events delta is real by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/248 * test(mock-sync): assert mock controller/pipe-state/capture-file method surfaces match real renderdoc by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/249 * Fix Windows Vulkan capture launch environment by @Lin-WeiChen-Taiwan in https://github.com/BANANASJIM/rdc-cli/pull/254 * fix(capture): use platform-appropriate cmdline quoting for child app args by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/258 * fix(setup): substitute Vulkan layer manifest template vars and detect duplicate layers by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/259 * build: add renderdoc pin-consistency test locking RDOC_TAG/SWIG_SHA256 to a single source by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/250 * test(capture): cover launch-env helpers and add EnvironmentModification mock by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/255 * test: add RDC_DATA_DIR seam and centralize unit/e2e home isolation by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/251 * chore: remove openspec design docs by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/261 * refactor(formatters): extract render_list helper and normalize quiet-key handling by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/252 * docs: fix stale command signatures and add cbuffer/rt-depth/--gpu coverage by @BANANASJIM in https://github.com/BANANASJIM/rdc-cli/pull/262 * feat(descriptors): resolve bindless array index to texture from the CLI by @K1ngst0m in https://github.com/BANANASJIM/rdc-cli/pull/264 ## New Contributors * @Lin-WeiChen-Taiwan made their first contribution in https://github.com/BANANASJIM/rdc-cli/pull/254 **Full Changelog**: https://github.com/BANANASJIM/rdc-cli/compare/v0.5.6...v0.6.0
此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 专业级GPU调试工具,直接解决RenderDoc捕获文件分析的核心任务痛点
- 提供完整的端到端工作流:从打开捕获到导出数据的全流程支持
- 支持CI断言和自动化测试,显著提升开发效率
待提升项
-
description写错位置 原报告严重程度:轻微
description内容出现在skill_body内部而非顶层frontmatter
改进建议:将description移至顶层frontmatter位置
亮点
- 触发词覆盖全面:包含open capture、rdc file、renderdoc等核心术语
- 支持多种变体表达:.rdc、着色器调试、像素追踪等专业术语
待提升项
-
缺少When to Use章节 原报告严重程度:轻微
文档结构完整但缺少明确的When to Use使用场景说明
改进建议:添加When to Use章节明确使用场景
亮点
- Phase清晰:7步完整工作流从打开到关闭
- 包含丰富的端到端示例和CI脚本
- 输出格式说明完整,支持多种数据格式
亮点
- 提供完整的异常处理指南和troubleshooting章节
- CI断言命令设计完善,支持非零退出码
- 支持远程调试和Android工作流
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 16 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。