Mirror of space-wizards/wgpu-native
Find a file
AlbinBernhardssonARM a2f5109b0d
Fix read-only depth/stencil attachments (#497)
Read-only depth/stencil attachments must have load/store ops None (or
_Undefined enum value in C API). However, when converting
WGPURenderPassDepthStencilAttachment, WGPULoadOp_Undefined was being
mapped to Some(wgc::command::LoadOp::Load) rather than None. Same for
store op.
2025-08-26 12:31:01 +02:00
.github/workflows chore(deps): update actions/download-artifact action to v5 (#505) 2025-08-26 10:30:40 +00:00
examples upgrade to wgpu v25 (#477) 2025-05-26 11:10:35 +02:00
ffi Add ShaderInt64 feature (#500) 2025-08-26 11:12:39 +02:00
src Fix read-only depth/stencil attachments (#497) 2025-08-26 12:31:01 +02:00
.gitignore Expose TextureViewArray, SamplerArray and associated extensions to the C API (#268) 2023-10-04 18:27:06 +05:30
.gitmodules refactor examples (#252) 2023-04-24 11:18:18 +09:00
bors.toml Remove release job from bors check (#18) 2020-04-30 15:35:44 -04:00
build.rs Explicitly pass MacOS SDK sysroot to bindgen arguments (#494) 2025-06-28 22:49:20 -04:00
Cargo.lock chore(deps): update cargo.lock (#496) 2025-06-30 17:34:47 -04:00
Cargo.toml chore(deps): update rust crate bindgen to 0.72 (#488) 2025-06-10 08:18:25 -04:00
checks.py Format python (#475) 2025-04-24 23:31:36 +00:00
LICENSE.APACHE Relicense under dual MIT/Apache-2.0 (#120) 2021-07-19 23:45:10 -04:00
LICENSE.MIT Relicense under dual MIT/Apache-2.0 (#120) 2021-07-19 23:45:10 -04:00
Makefile implement wgpuComputePassEncoderSetPushConstants (#437) 2024-10-17 09:13:39 +02:00
meson.build meson: Install Cargo-generated lib directly (#450) 2025-03-20 10:48:03 +01:00
README.md Update README.md (#495) 2025-06-29 03:02:52 +00:00
renovate.json Use lockFileMaintenance to update lock file. (#476) 2025-04-25 00:13:18 +00:00
rustfmt.toml Add examples and root configuration files 2020-04-16 22:34:18 -04:00

wgpu-native

Matrix Build Status

This is a native WebGPU implementation in Rust, based on wgpu-core. The bindings are based on the WebGPU-native header found at ffi/webgpu-headers/webgpu.h and wgpu-native specific items in ffi/wgpu.h

Bindings

Pre-built binaries

Automated 32 and 64-bit builds for MacOS, Windows and Linux are available as Github releases. Details can be found in the Binary Releases page in the wiki.

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.

There's also a (small) contributor guide.