Communitygithub.com

RenderDoc CLI 스킬

RenderDoc GPU 그래픽 디버거 캡처(.rdc 파일)에 대한 헤드리스 명령줄 분석 도구입니다.

RenderDoc CLI 스킬란 무엇인가요?

이 스킬은 RenderDoc GPU 프레임 캡처(.rdc 파일)를 명령줄 환경에서 완전히 분석할 수 있는 강력한 헤드리스 CLI 도구를 제공합니다. 개발자는 캡처 메타데이터 검사, 드로우 콜/디스패치/마커 검색, 텍스처 보기 및 내보내기, 셰이더 소스 코드 추출, 파이프라인 상태 비교, 메시 데이터 디코딩, GPU 하드웨어 카운터 읽기 등 RenderDoc GUI 없이도 포괄적인 GPU 디버깅이 가능합니다. 이 도구는 RenderDoc의 핵심 기능을 모두 명령줄로 노출하며, --json 플래그를 지원하여 CI/CD 파이프라인이나 AI 에이전트와의 통합에 최적화되어 있습니다. D3D11, OpenGL/GLES, Vulkan 등 다양한 그래픽 API의 캡처를 지원하며, 이진 셰이더(DXBC/SPIR-V)에서 HLSL/GLSL 소스를 자동 추출하거나 디스어셈블리 폴백을 제공합니다. 주요 기능 그룹은 capture(메타데이터/썸네일/변환), actions(드로우 콜 검색/필터링), textures(텍스처 보기/내보내기/픽셀 피킹), pipeline(셰이더 내보내기/상태 비교), resources(버퍼/텍스처 열거 및 읽기), mesh(버텍스 셰이더 입출력 디코딩), counters(GPU 성능 카운터) 등이며, preview 명령어로 이식 가능한 분석 번들을 생성할 수 있습니다. 또한 RenderDoc의 preview 시스템을 활용하여 '정직한(honest)' 캡처 분석 번들을 생성하고, cli-hub와 연동하여 미리보기를 검사/HTML 변환/열 수 있습니다. 파이프라인 diff 기능으로 두 이벤트 간의 상태 차이를 JSON 파일로 출력하여 디버깅 워크플로우를 자동화할 수 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-renderdoc

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

RenderDoc CLI 스킬은(는) 무엇을 하나요?

RenderDoc GPU 프레임 캡처(.rdc 파일)에 대한 헤드리스 명령줄 분석입니다.

기능

  • 캡처 검사: 메타데이터, 섹션, 썸네일, 포맷 변환
  • 액션 트리: 드로우 콜, 클리어, 디스패치, 마커 목록/검색/필터링
  • 텍스처 작업: 목록, 검사, 내보내기(PNG/JPG/DDS/HDR/EXR), 픽셀 피킹
  • 파이프라인 상태: 모든 이벤트에서 전체 셰이더/RT/뷰포트 상태
  • 셰이더 분석: 사람이 읽을 수 있는 형태(HLSL/GLSL/디스어셈블리)로 셰이더 내보내기, 상수 버퍼 읽기
  • 리소스 검사: 버퍼/텍스처 열거, 원시 데이터 읽기
  • 메시 데이터: 버텍스 셰이더 입력/출력 디코딩
  • GPU 카운터: 하드웨어 성능 카운터 열거 및 가져오기

명령 그룹

capture

cli-anything-renderdoc -c frame.rdc capture info          # 메타데이터 + 섹션
cli-anything-renderdoc -c frame.rdc capture thumb -o t.png # 썸네일 추출
cli-anything-renderdoc -c frame.rdc capture convert -o out.rdc --format rdc

actions

cli-anything-renderdoc -c frame.rdc actions list           # 모든 액션
cli-anything-renderdoc -c frame.rdc actions list --draws-only  # 드로우 콜만
cli-anything-renderdoc -c frame.rdc actions summary        # 유형별 개수
cli-anything-renderdoc -c frame.rdc actions find "Shadow"  # 이름으로 검색
cli-anything-renderdoc -c frame.rdc actions get 42         # 단일 액션

textures

cli-anything-renderdoc -c frame.rdc textures list
cli-anything-renderdoc -c frame.rdc textures get <id>
cli-anything-renderdoc -c frame.rdc textures save <id> -o out.png --format png
cli-anything-renderdoc -c frame.rdc textures save-outputs 42 -o ./renders/
cli-anything-renderdoc -c frame.rdc textures pick <id> 100 200

pipeline

cli-anything-renderdoc -c frame.rdc pipeline state 42

# 사람이 읽을 수 있는 형태로 셰이더 내보내기
# 텍스트 셰이더(GLSL/HLSL) → 직접 저장
# 이진 셰이더(DXBC/SPIR-V) → 내장 소스(HLSL/GLSL) 또는 디스어셈블리
cli-anything-renderdoc -c frame.rdc pipeline shader-export 42 --stage Fragment
cli-anything-renderdoc -c frame.rdc pipeline shader-export 42 --stage Vertex -o ./shaders/

cli-anything-renderdoc -c frame.rdc pipeline cbuffer 42 --stage Vertex --index 0

# 두 이벤트 간 파이프라인 상태 비교
# 기본 출력: 캡처 파일과 동일한 디렉토리  ;  -o로 재정의 가능
cli-anything-renderdoc -c a.rdc pipeline diff 100 200 -b b.rdc
cli-anything-renderdoc -c frame.rdc pipeline diff 100 200              # 동일 캡처
cli-anything-renderdoc -c a.rdc pipeline diff 100 200 -b b.rdc -o result.json
cli-anything-renderdoc -c a.rdc pipeline diff 100 200 -b b.rdc --no-compact

resources

cli-anything-renderdoc -c frame.rdc resources list
cli-anything-renderdoc -c frame.rdc resources buffers
cli-anything-renderdoc -c frame.rdc resources read-buffer <id> --format float32

mesh

cli-anything-renderdoc -c frame.rdc mesh inputs 42 --max-vertices 10
cli-anything-renderdoc -c frame.rdc mesh outputs 42

counters

cli-anything-renderdoc -c frame.rdc counters list
cli-anything-renderdoc -c frame.rdc counters fetch --ids 1,2,3

미리보기 번들

RenderDoc 미리보기 지원은 실시간 크리에이티브 미리보기가 아닌 정확한 캡처 검사를 위한 것입니다.

# 미리보기 레시피 목록
cli-anything-renderdoc -c frame.rdc --json preview recipes

# 활성 캡처 또는 특정 이벤트에 대한 미리보기 번들 캡처
cli-anything-renderdoc -c frame.rdc --json preview capture --recipe quick --event-id 42

# 두 이벤트 또는 캡처에 대한 diff 미리보기 번들 캡처
cli-anything-renderdoc -c frame.rdc --json preview diff 100 200
cli-anything-renderdoc -c a.rdc --json preview diff 100 200 --capture-b b.rdc

# 캡처에 대한 최신 기존 번들 반환
cli-anything-renderdoc -c frame.rdc --json preview latest --recipe quick

일반적인 미리보기 번들 내용:

  • 캡처 썸네일
  • 출력 대상 이미지
  • pipeline_state.json
  • action_summary.json

Diff 번들에는 추가로 다음이 포함됩니다:

  • A/B 썸네일
  • A/B 출력 대상 이미지
  • pipeline_diff.json

RenderDoc은 현재 실시간 미리보기 세션을 노출하지 않습니다. 대신 각 캡처/diff 번들은 안정적인 레시피 수준의 trajectory.json에 추가됩니다.

뷰어 명령:

cli-hub previews inspect /path/to/bundle
cli-hub previews html /path/to/bundle -o page.html
cli-hub previews open /path/to/bundle

JSON 모드

모든 명령어는 --json을 지원하여 기계가 읽을 수 있는 출력을 제공합니다:

cli-anything-renderdoc -c frame.rdc --json actions summary

환경 변수

변수설명
RENDERDOC_CAPTURE기본 캡처 파일 경로
PYTHONPATHRenderDoc 경로를 포함해야 함

에이전트 사용 참고 사항

  • pipeline shader-export를 사용하여 셰이더 추출 — 이진 셰이더(DXBC/SPIR-V)의 경우 내장 HLSL/GLSL 소스를 자동 내보내거나 디스어셈블리로 폴백합니다. 텍스트 셰이더(GLSL/HLSL)의 경우 원시 소스를 직접 저장합니다.
  • 캡처 API별 셰이더 형식:
    • D3D11 → DXBC 이진, 내장 HLSL 소스(.hlsl) 또는 바이트코드 asm(.dxbc.asm)으로 내보내짐
    • OpenGL/GLES → GLSL 소스 텍스트(.glsl), 이미 사람이 읽을 수 있음
    • Vulkan → SPIR-V 이진, 내장 GLSL 소스(.glsl) 또는 SPIR-V asm(.spv.asm)으로 내보내짐
  • pipeline diff를 사용하여 두 이벤트 비교 — JSON 파일을 쓰고 경로만 출력합니다. 두 번째 캡처에는 -b를 사용하십시오.
  • 프로그램적 사용을 위해 항상 --json을 지정하십시오.
  • 먼저 actions summary를 사용하여 캡처 복잡성을 파악하십시오.
  • 실제 렌더링에 집중하려면 actions list --draws-only를 사용하십시오.
  • 에이전트가 원시 리플레이 호출만이 아니라 이식 가능하고 정직한 검사 번들을 필요로 할 때 preview capture 또는 preview diff를 사용하십시오.
  • 영구적인 캡처/diff 기록이 필요한 경우 미리보기 JSON에서 _trajectory_path를 읽으십시오.
  • 이미 생성된 번들을 검사/열 때만 cli-hub previews ...를 사용하십시오.
  • 파이프라인 상태에는 액션 목록의 이벤트 ID가 필요합니다.
  • 텍스처 저장 지원 형식: png, jpg, bmp, tga, hdr, exr, dds
  • 버퍼 데이터는 hex, float32, uint32 또는 원시 바이트로 디코딩할 수 있습니다.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

관련 스킬