wgpu

Native WebGPU implementation based on gfx-hal

Github星跟踪图

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
Build Status
Crates.io
Crates.io

This is an experimental WebGPU implementation, exposing both Rust and C interfaces as a native static library. It's written in Rust and is based on gfx-hal and a few Rendy bits. See the upstream WebGPU specification (work in progress).

The implementation consists of the following parts:

  1. wgpu-core - internal Rust API for WebGPU implementations to use
  2. wgpu-native - the native implementation of WebGPU as a C API library
  3. wgpu-remote - remoting layer to work with WebGPU across the process boundary, as a C API library used by Gecko
  4. ffi - the C headers generated by cbindgen for the native headers

Supported Platforms

API, Windows, Linux, macOS & iOS, -----, ------------------, ------------------, ------------------, DX11, :white_check_mark:, DX12, :heavy_check_mark:, Vulkan, :heavy_check_mark:, :heavy_check_mark:, Metal, :heavy_check_mark:, OpenGL, :construction:, :construction:, :construction:, ## Usage

This repository contains C-language examples that link to the native library targets and perform basic rendering and computation. Please refer to our Getting Started page at the wiki for more information.

Bindings:

主要指标

概览
名称与所有者gfx-rs/wgpu
主编程语言Rust
编程语言Rust (语言数: 8)
平台
许可证Apache License 2.0
所有者活动
创建于2018-09-13 19:18:50
推送于2025-06-12 05:22:18
最后一次提交
发布数312
最新版本名称wgpu-v25.0.2 (发布于 2025-05-24 12:58:18)
第一版名称wgpu-v0.2.0 (发布于 )
用户参与
星数14.4k
关注者数107
派生数1.1k
提交数9.4k
已启用问题?
问题数3092
打开的问题数883
拉请求数3764
打开的拉请求数44
关闭的拉请求数454
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?