https://github.com/DLangGamedev/bindbc-wgpu
WebGPU for D
https://github.com/DLangGamedev/bindbc-wgpu
3d-graphics dlang rendering webgpu wgpu
Last synced: 3 months ago
JSON representation
WebGPU for D
- Host: GitHub
- URL: https://github.com/DLangGamedev/bindbc-wgpu
- Owner: DLangGamedev
- License: bsl-1.0
- Created: 2019-10-02T21:16:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-07-30T15:19:27.000Z (3 months ago)
- Last Synced: 2025-07-30T18:08:02.009Z (3 months ago)
- Topics: 3d-graphics, dlang, rendering, webgpu, wgpu
- Language: C++
- Homepage:
- Size: 141 MB
- Stars: 30
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: COPYING.txt
Awesome Lists containing this project
- awesome-d - bindbc-wgpu
README
[](https://code.dlang.org/packages/bindbc-wgpu)
# bindbc-wgpu
Dynamic binding to [gfx-rs/wgpu-native](https://github.com/gfx-rs/wgpu-native) for the D language based on [BindBC](https://github.com/BindBC/bindbc-loader) library loader. Supports Windows, Linux and macOS.
> WebGPU specification is currently a Candidate Recommendation Draft and not a W3C standard yet. API may change and break backward compatibility; use at your own risk. This binding may be not up to date with latest API revisions.
Usage:
```
"dependencies": {
"bindbc-wgpu": "0.25.0"
}
```
This repository also includes a simple triangle drawing example. More advanced demo can be found [here](https://github.com/gecko0307/wgpu-dlang).
## What is WebGPU?
It is a new low-level graphics and compute API for the Web that works on top of Vulkan, DirectX 12, or Metal. It exposes the generic computational facilities available in today's GPUs in a cross-platform way.
[wgpu](https://github.com/gfx-rs/wgpu) is a native WebGPU implementation written in Rust that can be compiled to a shared library to use with any language. Its API is based on the [W3C spec](https://www.w3.org/TR/webgpu/). It serves as the core of the WebGPU integration in Firefox, Servo, and Deno.
Some useful links:
* [WebGPU specification](https://www.w3.org/TR/webgpu/)
* [WebGPU Shading Language specification](https://www.w3.org/TR/WGSL/)
* [wgpu documentation](https://docs.rs/wgpu/latest/wgpu/index.html)