You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
learn-wgpu/docs
Benjamin Hansen ad3d08b917 fixed tobj not building due to ahash 2 weeks ago
..
.vuepress adding reference to 22.0 news 2 months ago
beginner fixed tobj not building due to ahash 2 weeks ago
intermediate Fix indentations 2 months ago
news update to 22.0 2 months ago
showcase update to 22.0 2 months ago
topics stubbed out topics page 1 year ago
README.md update to 22.0 2 months ago
todo.md textures 5 years ago

README.md

Introduction

What is wgpu?

Wgpu is a Rust implementation of the WebGPU API spec. WebGPU is a specification published by the GPU for the Web Community Group. It aims to allow web code access to GPU functions in a safe and reliable manner. It does this by mimicking the Vulkan API, and translating that down to whatever API the host hardware is using (ie. DirectX, Metal, Vulkan).

Wgpu is still in development, so some of this doc is subject to change.

Why Rust?

Wgpu actually has C bindings to allow you to write C/C++ code with it, as well as use other languages that interface with C. That being said, wgpu is written in Rust, and it has some convenient Rust bindings that don't have to jump through any hoops. On top of that, I've been enjoying writing in Rust.

You should be fairly familiar with Rust before using this tutorial as I won't go into much detail on Rust syntax. If you're not super comfortable with Rust you can review the Rust tutorial. You should also be familiar with Cargo.

I'm using this project to learn wgpu myself, so I might miss some important details, or explain things badly. I'm always open to constructive feedback.

Contribution and Support

  • I accept pull requests (GitHub repo) for fixing issues with this tutorial such as typos, incorrect information, and other inconsistencies.
  • Due to wgpu's rapidly changing api, I'm not accepting any new pull requests for showcase demos.
  • If you want to support me directly, check out my patreon!

Translations

Special thanks to these patrons

  • David Laban
  • yutani
  • Gunstein Vatnar
  • Lennart
  • Paul E Hansen
  • Eliot Bolduc
  • Ian Gowen
  • Ben Anderson
  • Aron Granberg
  • Ken K
  • Bernard Llanos
  • Danny McGee
  • Thunk
  • Zeh Fernando
  • Craft Links
  • Felix
  • Youngsuk Kim
  • Tema
  • オリトイツキ
  • Andrea Postal
  • Davide Prati
  • 大典 加藤
  • charlesk
  • Julius Liu
  • Feng Liang
  • dadofboi
  • Mattia Samiolo
  • Jani Turkia
  • papyDoctor
  • Filip
  • Alexander Kabirov
  • Nico Arbogast
  • Dude
  • Georeth Zhow
  • Lions Heart
  • Ryan