forge-debug-lines

Draw colored lines, grids, axes, circles, and wireframe boxes in SDL GPU projects.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-debug-lines
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forge-debug-lines
Source: https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317/tree/main/.claude/skills/forge-debug-lines
Command: npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-debug-lines

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Efficiently visualize runtime data in SDL GPU projects with a lightweight immediate-mode debug drawing system that renders colored lines, grids, axes, circles, and wireframe boxes in both world-space and overlay modes.

Core Features & Use Cases

  • Draw colored lines, grids, axis gizmos, circles, and wireframe boxes to diagnose rendering and physics.
  • Supports world-space (depth-tested) and overlay (always-on-top) rendering for flexible diagnostics.
  • Integrates with a per-frame workflow: reset counts, accumulate shapes, upload to a dynamic vertex buffer, and render.

Quick Start

Initialize the debug system, per frame accumulate your shapes, upload to a dynamic vertex buffer, and render both world-space and overlay lines.

Frequently Asked Questions about forge-debug-lines

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I draw debug lines in SDL GPU for visual diagnostics?

Draw debug lines in SDL GPU using an immediate-mode API that accumulates colored lines, grids, axes, circles, and wireframe boxes into a dynamic vertex buffer for per-frame rendering.

What is immediate-mode debug visualization for game development?

Immediate-mode debug visualization is a per-frame workflow where you reset shape counts, accumulate runtime diagnostic geometry, upload it to a dynamic vertex buffer, and render it before the frame ends.

Can I render overlay debug lines that always stay on top in SDL GPU?

Yes, you can render overlay debug lines that always stay on top in SDL GPU using a dedicated pipeline that bypasses depth testing, separate from the depth-tested world-space pipeline.

Does this debug line drawing system support world-space depth testing?

Yes, the debug line drawing system supports world-space depth testing through one of its two tailored rendering pipelines, ensuring debug geometry correctly occludes behind scene objects.

What is the best way to visualize physics and rendering diagnostics in SDL GPU?

The best way to visualize diagnostics in SDL GPU is using a low-overhead immediate-mode system to draw colored wireframe boxes, circles, and grids, avoiding complex persistent scene graph integration.