mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[rs] Really fix the environment to WGPU_BACKEND this time
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user