#graphics

wgpu-core

WebGPU core logic on gfx-hal

13 releases

new 0.6.5 Oct 14, 2020
0.6.4 Oct 6, 2020
0.6.3 Sep 5, 2020
0.6.1 Aug 28, 2020
0.5.4 Apr 25, 2020

#215 in Graphics APIs

Download history 3654/week @ 2020-06-30 3735/week @ 2020-07-07 3911/week @ 2020-07-14 3748/week @ 2020-07-21 3551/week @ 2020-07-28 2779/week @ 2020-08-04 2907/week @ 2020-08-11 5024/week @ 2020-08-18 7217/week @ 2020-08-25 8456/week @ 2020-09-01 7522/week @ 2020-09-08 6009/week @ 2020-09-15 5455/week @ 2020-09-22 8608/week @ 2020-09-29 8706/week @ 2020-10-06 4561/week @ 2020-10-13

24,776 downloads per month
Used in 57 crates (2 directly)

MPL-2.0 license

720KB
16K SLoC

This is an active GitHub mirror of the WebGPU implementation in Rust, which now lives in "gfx/wgpu" of Mozilla-central. Issues and pull requests are accepted, but some bidirectional synchronization may be involved.

WebGPU

Matrix Matrix Build Status

This is the core logic of an experimental WebGPU implementation. It's written in Rust and is based on gfx-hal with help of gfx-extras. See the upstream WebGPU specification (work in progress).

The implementation consists of the following parts:

  • Crates.io docs.rs - internal Rust API for WebGPU implementations to use
  • Crates.io docs.rs - Rust types shared between wgpu-core, wgpu-native, and wgpu-rs
  • player - standalone application for replaying the API traces, uses winit

This repository contains the core of wgpu, and is not usable directly by applications. If you are looking for the user-facing Rust API, you need wgpu-rs. If you are looking for the native implementation or bindings to the API in other languages, you need wgpu-native.

Supported Platforms

API Windows 7/10 Linux & Android macOS & iOS
DX11
DX12 ✔️
Vulkan ✔️ ✔️
Metal ✔️
OpenGL 🚧 🚧 🚧

✔️ = Primary support — ✅ = Secondary support — 🚧 = Unsupported, but support in progress

Dependencies

~2.7–5MB
~104K SLoC