mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 07:51:08 +01:00
[rs] Really fix the environment to WGPU_BACKEND this time
This commit is contained in:
1 parent
a028a6f5d1
commit
5507e16718
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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