[rs] Really fix the environment to WGPU_BACKEND this time

This commit is contained in:
Dzmitry Malyshau
2020-10-11 23:43:39 -04:00
parent a028a6f5d1
commit 5507e16718
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ These examples use the default syntax for running examples, as found in the [Car
cargo run --example cube
```
The `hello-triangle` and `hello-compute` examples show bare-bones setup without any helper code. For `hello-compute`, pass 4 numbers separated by spaces as arguments:
The `hello*` examples show bare-bones setup without any helper code. For `hello-compute`, pass 4 numbers separated by spaces as arguments:
```bash
cargo run --example hello-compute 1 2 3 4

View File

@@ -108,7 +108,7 @@ async fn setup<E: Example>(title: &str) -> Setup {
log::info!("Initializing the surface...");
let backend = if let Ok(backend) = std::env::var("WGPU_TRACE") {
let backend = if let Ok(backend) = std::env::var("WGPU_BACKEND") {
match backend.to_lowercase().as_str() {
"vulkan" => wgpu::BackendBit::VULKAN,
"metal" => wgpu::BackendBit::METAL,