Skip to content

Running the examples

Snowiiii edited this page Apr 1, 2023 · 5 revisions

Running the examples

This section will show you how to get the necessary dependencies for running the examples included in wgpu-rs.

Dependencies

The project requires

Cloning

When you have installed the tools above then you can clone this repository

git clone https://github.com/gfx-rs/wgpu.git
cd wgpu

Running the examples

You can run the examples using the --example flag for cargo.

# Show a list of all examples
cargo run --example

# Run the cube example
cargo run --example cube