# wgpu

A cross-platform, safe, pure-Rust graphics API.

Repository: https://github.com/gfx-rs/wgpu
Canonical: https://ross.abutalabs.com/products/wgpu
Homepage: https://wgpu.rs
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: webgpu, rust, gpu, metal, opengl, vulkan, hacktoberfest, d3d12
Last push: 2026-08-26T21:31:35+00:00
Link (homepage): https://wgpu.rs

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 2911, "days_push": 7, "days_rel": 11, "gap_med": 14.0, "n_releases_24m": 33}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 17870, forks 1408 (observed 2026-08-28T04:11:20.495403+00:00)

## What it is
wgpu is a cross-platform, safe, pure-Rust graphics API based on the WebGPU standard. It runs natively on Vulkan, Metal, D3D12, and OpenGL, and on WebGPU/WebGL2 in browsers via WebAssembly, and powers WebGPU in Firefox, Servo, and Deno.

## Use cases
- render 2D/3D graphics in Rust across desktop and web
- run general-purpose GPU compute shaders portably
- build a game engine or renderer in Rust
- target WebGPU from C or other languages via wgpu-native
- write shaders once and run on Vulkan, Metal, and D3D12
- port a native graphics app to the browser with WebAssembly

## When to choose
- you need a safe, portable GPU API in Rust across native and web targets
- you want WebGPU semantics with native performance
- you need compute as well as graphics on the GPU

## When to avoid
- you need maximum raw performance and fine control over Vulkan/D3D12 directly
- you need OpenGL compatibility features or legacy GPU support
- your project is not in Rust or a language with wgpu-native bindings

## Facets
- artifact type: library
- maturity: stable
- function: graphics, game-engine, gpu-computing, wasm
- domain: graphics, cross-platform, web-development
- platform: rust, cross-platform, wasm, windows
- tags: webgpu, vulkan, metal, d3d12, opengl, webgl2, compute-shaders, rendering, game-development, linux, macos, web-server

## Member repositories
- gfx-rs/wgpu (main) score 99
- gfx-rs/wgpu-rs (mirror) score 10
- gfx-rs/naga (mirror) score 10
- gfx-rs/wgpu-native (sdk) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:20.495403+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:02:18.049378+00:00, confidence not recorded.
  - readme: https://github.com/gfx-rs/wgpu (fetched 2026-08-28T04:11:20.495403+00:00, sha b8386c56fb06)
  - homepage: https://wgpu.rs (fetched 2026-08-29T08:00:27.870054+00:00, sha 603aef5b72d5)
  - registry_crates: https://crates.io/api/v1/crates/wgpu (fetched 2026-08-29T08:00:27.879191+00:00, sha 4c5d4e7d3e5f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
