Bindings to gfx-rs/wgpu-native for the Crystal programming language.
-
Add the dependency to your
shard.yml
:dependencies: wgpu: github: chances/wgpu-crystal
-
Run
shards install
require "wgpu"
# TODO: Write usage instructions here
See the API documentation.
See the wgpu-native Usage instructions.
TODO: Write development instructions here
make example-headless
make example-triangle
TODO: Add a windowed example
Ensure glfw3 is installed.
make example-glfw-triangle
Release tags' major and minor version numbers align with those of wgpu-native
. For example, the 0.9.*
tags align with one of the 0.9.*
releases of wgpu-native
. See ./native.lock.yml
for the specific native library target.
- Fork it (https://github.com/chances/wgpu-crystal/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Chance Snow - creator and maintainer