Expand description
§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).
- Drivers for your graphics card. Note that some platforms have multiple possible driver backends (e.g. D3D12 or Vulkan on Windows).
- Git (installation instructions).
§Cloning
Once you have the tools above, clone the repository:
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:
# Show a list of all examples
cargo run --bin wgpu-examples
# Run the cube example
cargo run --bin wgpu-examples cubeTo run an example in a browser, see Running on the Web.