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-04-23 22:27:20
最后一次提交
發布數306
最新版本名稱v25.0.1 (發布於 2025-04-11 15:00:49)
第一版名稱wgpu-v0.2.0 (發布於 )
用户参与
星數14k
關注者數109
派生數1k
提交數9.3k
已啟用問題?
問題數3036
打開的問題數862
拉請求數3662
打開的拉請求數50
關閉的拉請求數441
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?