From 5507e16718f5b49688adfdf73ae4771023a0e930 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Sun, 11 Oct 2020 23:43:39 -0400 Subject: [PATCH] [rs] Really fix the environment to WGPU_BACKEND this time --- wgpu/README.md | 2 +- wgpu/examples/framework.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu/README.md b/wgpu/README.md index 19098588e8..d78efc1b00 100644 --- a/wgpu/README.md +++ b/wgpu/README.md @@ -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 diff --git a/wgpu/examples/framework.rs b/wgpu/examples/framework.rs index 622c51d6b2..dcb3c77a0b 100644 --- a/wgpu/examples/framework.rs +++ b/wgpu/examples/framework.rs @@ -108,7 +108,7 @@ async fn setup(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,