wgpu/documentation/getting_started/
running_the_examples.rs

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