krilliac/agent-workbench/shader-debug
Claude Code and agent skill by krilliac/agent-workbench
- community
Checking that the SKILL.md file is still in the repository.
HLSL / SPIR-V / GLSL shader debugging with RenderDoc, PIX for Windows, and NSight. TRIGGER when the user says 'shader broken', 'pixel is black', 'wrong color output', 'RenderDoc capture', 'PIX', 'why isn''t this uniform binding', 'root signature mismatch', 'SPIR-V validation error', 'cross-compile broke my shader'. DO NOT TRIGGER for C++ compile errors involving shader headers, or non-shader graphics issues like state leaks. Covers RenderDoc pixel history, PIX GPU capture, SPIRV-Cross gotchas, D3D12 root sig debugging, and common HLSL to SPIR-V bugs that break cross-platform builds.
Install
npx vskill@latest install krilliac/agent-workbench/shader-debugSKILL.md
The same SKILL.md was published earlier as krilliac/agent-workbench/shader-debug.
shader-debug
Tool choice
- RenderDoc default: free, D3D11/12/Vulkan/GL. Great pixel history + shader edit-and-reload.
- PIX for Windows: best for D3D12 root sig + PSO debugging.
- spirv-val / spirv-cross: HLSL -> SPIR-V pipeline lifesavers.
RenderDoc flow
- Launch injected. F12 during broken frame.
- Select misbehaving draw in event browser.
- Right-click pixel -> History (which event wrote wrong value).
- Right-click pixel -> Debug Pixel (step through PS with locals).
HLSL bugs that only fail on SPIR-V
register(t0, space0)vsregister(u0, space0)on Vulkan -- distinct spaces needed.- HLSL
float3= 16 B in CB, SPIR-V = 12 B unless[[vk::layout(std140)]]. - Semantic-based binding non-existent on Vulkan --
[[vk::location(N)]]on inputs + outputs. SV_TARGETcount: HLSL infers; SPIR-V requires explicit[[vk::location(N)]].
Cross-compile: dxc -T ps_6_5 -spirv -fspv-target-env=vulkan1.2 -Fo out.spv in.hlsl. Then spirv-val out.spv.
D3D12 root sig
ID3D12Debug1::SetEnableGPUBasedValidation(TRUE)in dev.- CBV size must be
sizeof(CB) rounded to 256 B. - Descriptor heap must be
SHADER_VISIBLE. - Root params > 64 DWORDs -> use descriptor tables.
Capture size
Bind a break-on-key; capture only the broken frame.
Method
- Reproduce in minimal frame; distinctive clear color.
- Capture.
- Pixel history first (usually names the draw).
- Shader-debug the PS; compare expected vs actual binding.
- Cross-compile bugs: run spirv-val, diff DXIL vs SPIR-V disassembly.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/shader-debug/SKILL.md
Popularity
- Repository forks
- 1
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/krilliac/agent-workbench/shader-debug)