forge-compute-shaders

Set up SDL3 GPU compute pipelines with embedded shaders and storage textures.

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-compute-shaders
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forge-compute-shaders
Source: https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317/tree/main/.claude/skills/forge-compute-shaders
Command: npx skills add https://github.com/code-review-benchmark/coderabbit_prs2__forge-gpu__coderabbit__PR323__20260317 --skill forge-compute-shaders

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compute shaders enable GPU-based general-purpose computation within SDL3 GPU workflows, offloading heavy tasks from the CPU and enabling high-throughput processing.

Core Features & Use Cases

  • Create and dispatch compute pipelines with embedded shader code
  • Bind storage textures and read/write buffers for compute passes
  • Use a compute-then-render pattern: compute an image, then render it by sampling the output
  • Push per-frame uniforms and manage dispatch group sizing to cover the target texture size
  • Suitable for image processing, procedural generation, particle simulations, and post-processing workloads

Quick Start

Create a compute pipeline with embedded shader code, bind a RW texture, push per-frame uniforms, dispatch groups to process an image, and render the result in a subsequent render pass.

Frequently Asked Questions about forge-compute-shaders

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

FAQPage Schema
How do I set up a compute pipeline with SDL3 GPU to write to storage textures?

To set up a compute pipeline with SDL3 GPU, you embed compute shader code, bind read/write storage textures and buffers, push per-frame uniforms, and dispatch workgroups sized to cover the target texture before rendering the output.

Can I run particle simulations using SDL3 GPU compute shaders?

Yes, SDL3 GPU compute shaders support particle simulations by binding read/write buffers and storage textures, pushing per-frame uniforms, and dispatching workgroups to process the simulation data before a subsequent render pass consumes the output.

What is the compute-then-render pattern in SDL3 GPU workflows?

The compute-then-render pattern in SDL3 GPU runs a compute pass to generate or process an image into a storage texture, then executes a render pass that samples that output texture to display the compute results on screen.

Does SDL3 GPU support random-access writes to textures for procedural generation?

Yes, SDL3 GPU supports random-access writes to textures by binding storage textures in a compute pipeline, enabling procedural generation workloads to dispatch workgroups that write pixel data directly before the render pass consumes the output.

How do I size compute workgroups to cover a target texture in SDL3 GPU?

To size compute workgroups in SDL3 GPU, calculate the dispatch group dimensions based on the target texture size and your workgroup thread counts, ensuring the dispatched groups fully cover the texture dimensions for the compute pass.

What workloads are suitable for SDL3 GPU compute pipelines besides rendering?

SDL3 GPU compute pipelines suit image processing, procedural generation, particle simulations, and post-processing workloads, handling general-purpose GPU computation that requires random-access writes to textures or buffers before rendering results.