-
Notifications
You must be signed in to change notification settings - Fork 953
Running the examples
Jean Lauliac edited this page Mar 4, 2024
·
5 revisions
This section will show you how to get the necessary dependencies for running the examples included in wgpu-rs.
The project requires
- The rust compiler (installation instructions)
- Drivers for your graphics card. Note that some platforms have multiple possible driver backends (e.g. DX12 or Vulkan on Windows).
- git (installation instructions)
When you have installed the tools above then you can clone this repository
git clone --depth 1 https://github.com/gfx-rs/wgpu.git
cd wgpu
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