1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*!
# Running the Examples
This section shows you how to get the dependencies needed to run the
examples included in the `wgpu` repository.
## Dependencies
The examples require:
- The Rust compiler ([installation instructions](https://www.rust-lang.org/)).
- Drivers for your graphics card. Note that some platforms have multiple
possible driver backends (e.g. D3D12 or Vulkan on Windows).
- Git ([installation instructions](https://git-scm.com/downloads)).
## Cloning
Once you have the tools above, clone the repository:
```bash
git clone --depth 1 https://github.com/gfx-rs/wgpu.git
cd wgpu
```
## Running the examples
You can run the examples using the `wgpu-examples` binary:
```bash
# Show a list of all examples
cargo run --bin wgpu-examples
# Run the cube example
cargo run --bin wgpu-examples cube
```
To run an example in a browser, see
[Running on the Web](crate::documentation::platforms::web).
*/