Module running_the_examples

Module running_the_examples 

Source
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:

§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 cube

To run an example in a browser, see Running on the Web.