forge-ui-rendering

Render Forge UI vertex/index arrays with a single SDL_DrawGPUIndexedPrimitives call.

36|6|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/Nebulavenus/forge-gpu --skill forge-ui-rendering-nebulavenus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forge-ui-rendering
Source: https://github.com/Nebulavenus/forge-gpu/tree/main/.claude/skills/forge-ui-rendering
Command: npx skills add https://github.com/Nebulavenus/forge-gpu --skill forge-ui-rendering-nebulavenus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Render the Forge UI system on the GPU using SDL GPU to draw the immediate-mode interface with font atlas text and alpha blending in a single pipeline.

Core Features & Use Cases

  • Single draw call UI pipeline: all widgets batched into one vertex/index stream.
  • Font atlas rendering with alpha blending for crisp UI text.
  • End-to-end setup from atlas creation to projection, texture binding, and render pass, enabling seamless integration in GPU applications.

Quick Start

Initialize the Forge UI system, upload the atlas, create the pipeline, and render the UI each frame with a single SDL_DrawGPUIndexedPrimitives call.

Frequently Asked Questions about forge-ui-rendering

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

FAQPage Schema
How do I render an immediate-mode UI on the GPU with a single draw call?

To render an immediate-mode UI on the GPU with a single draw call, you batch all widgets into one vertex and index stream. This pipeline uses SDL GPU to draw the entire interface via a single SDL_DrawGPUIndexedPrimitives call.

How does font atlas rendering work for SDL GPU UI pipelines?

Font atlas rendering for SDL GPU UI pipelines works by binding a single atlas texture with a linear clamp sampler. The pipeline applies alpha blending to produce crisp UI text alongside batched interface elements in one draw call.

What do I need to set up a 2D UI rendering pipeline with SDL GPU?

To set up a 2D UI rendering pipeline with SDL GPU, you need an atlas texture, a linear clamp sampler, and an orthographic projection. You also need a per-frame transfer buffer workflow to stream vertex and index data.

Can I use this single draw call UI pipeline with my existing ForgeUiContext?

Yes, you can use this pipeline if your ForgeUiContext produces vertex and index arrays. The pipeline is specifically designed to consume those arrays and render the immediate-mode interface using dynamic buffer streaming.

What is the best way to batch UI widgets and text into one GPU draw call?

The best way to batch UI widgets and text into one GPU draw call is to combine them into a single vertex and index stream bound to one atlas texture. This approach eliminates multiple state changes and renders the entire frame at once.

Why does my dynamic buffer streaming fail when rendering immediate-mode UI with SDL GPU?

Dynamic buffer streaming for immediate-mode UI requires a specific per-frame transfer buffer workflow. You must correctly copy vertex and index arrays into transfer buffers before binding them to the SDL_DrawGPUIndexedPrimitives call.