LearnWebGPU-zig

LearnWebGPU-zig

TODO: describe this project

ZigStarted

README

Learn Zig through WebGPU

A Zig adaptation of LearnWebGPU for C++ - a progressive tutorial teaching modern GPU programming.

What is this?

This repository contains self-contained Zig programs that teach you both Zig and WebGPU simultaneously. Each lesson is a standalone file that builds on previous concepts.

Quick Start

# Run any lesson
zig run src/getting-started/01-hello-webgpu.zig

# Or build it
zig build-exe src/getting-started/01-hello-webgpu.zig
./01-hello-webgpu

Project Structure

src/
├── getting-started/     # Foundation lessons (7 files)
├── basic-3d-rendering/  # 3D graphics lessons (~28 files)
└── basic-compute/       # Compute shader lessons

See CLAUDE.md for detailed lesson progression and learning goals.

Prerequisites

  • Zig (latest stable version)
  • Basic programming knowledge
  • Curiosity about graphics programming

Why Zig + WebGPU?

  • Zig: Modern, simple, explicit - perfect for learning
  • WebGPU: Modern GPU API, cross-platform, future-proof
  • Self-contained lessons: Each file runs independently
  • Progressive learning: From "Hello World" to advanced rendering

Resources

License

Educational project - see individual files for specifics.