wgpu-d 0.1.3
D bindings to wgpu-native
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
This package provides sub packages which can be used individually:
wgpu-d:headless - Headless (windowless) rendering example
wgpu-d:triangle - Triangle (windowed) example
wgpu-d
D bindings to wgpu-native as an idiomatic wrapper around the library.
Targets wgpu-native v0.10.4.1
.
Usage
"dependencies": {
"wgpu-d": "0.1.2"
}
Examples
You can try the examples before installing:
Headless
dub run wgpu-d:headless
Triangle
dub run wgpu-d:triangle
Cube
dub run wgpu-d:cube
Development
Bindings to wgpu.h
are generated dynamically on your host system and loaded by D with ImportC. See the wgpu
Makefile task. The wgpu
task is automatically performed as a Dub pre-generate command.
Testing
The unit test executable is patched (patchelf
for Posix and install_name_tool
for mac OS) to correct the library load path such that libwgpu
is found.
See this StackOverflow answer.
Upgrading wgpu-native
make clean
- Bump the version constraint in subprojects/wgpu.Makefile.
dub test
- Ensure the examples compile:
dub build wgpu-d:headless
dub build wgpu-d:triangle
dub build wgpu-d:cube
- Fix any errors in the idiomatic wrapper
- Registered by Chance Snow
- 0.1.3 released a year ago
- chances/wgpu-d
- MIT
- Copyright © 2020-2023, Chance Snow
- Authors:
- Sub packages:
- wgpu-d:headless, wgpu-d:triangle
- Dependencies:
- none
- Versions:
-
0.3.1 2024-Feb-10 0.3.0 2024-Jan-29 0.2.0 2023-Oct-20 0.1.4 2023-Sep-26 0.1.3 2023-Sep-24 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
163 downloads total
-
- Score:
- 0.6
- Short URL:
- wgpu-d.dub.pm