learn-wgpu/docs
sotrh 17a6af4067
Merge pull request #38 from artvinn/master
Fix some inconsistencies
2020-05-19 15:03:16 -06:00
..
.vuepress fixed crash in later example code 2020-05-19 11:46:04 -06:00
beginner Merge pull request #38 from artvinn/master 2020-05-19 15:03:16 -06:00
intermediate finish normal mapping 2020-05-04 13:03:39 -06:00
news preparing normal mapping for deploy 2020-05-04 13:08:10 -06:00
showcase migrated windowless 2020-04-25 17:22:26 -06:00
README.md reorganized project, added challenge impls 2019-11-12 23:52:09 -07:00
todo.md textures 2019-11-05 01:02:41 -07:00

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 convient 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 about Cargo.

I'm using this project as a way to learn wgpu myself, so I might miss some important details, or explain things wrong. I'm always open to constructive feedback. That being said, let's get started!