mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 14:55:05 +00:00
Merge #165
165: Document how to run example in readme r=kvark a=rukai This took me a while to figure out, I'm sure others would find it useful in the readme. Co-authored-by: Rukai <rubickent@gmail.com>
This commit is contained in:
commit
75201773a7
10
README.md
10
README.md
@ -20,6 +20,14 @@ Supported platforms:
|
||||
|
||||
## Usage
|
||||
|
||||
This repository contains C-language examples that link to the native library targets and perform basic rendering and computation. You can test them with `make`.
|
||||
This repository contains C-language examples that link to the native library targets and perform basic rendering and computation.
|
||||
To run the C triangle example, install a C compiler + glfw 3, then run these commands at the root of the repo:
|
||||
```
|
||||
rustup toolchain install nightly
|
||||
cargo install cbindgen
|
||||
make examples-native
|
||||
cd examples/hello_triangle_c/build
|
||||
./hello_triangle
|
||||
```
|
||||
|
||||
The idiomatic Rust wrapper lives in https://github.com/gfx-rs/wgpu-rs and provides a number of more complex examples to get a feel of the API.
|
||||
|
Loading…
Reference in New Issue
Block a user