-
Notifications
You must be signed in to change notification settings - Fork 2
when building and running wgpu I get errors looking for Metal adapter. #2
Comments
I am able to get the xcode project to work and do somewhat of a build... but it is very janky... this is the error I get while building in xcode after a crash |
@gschian0 Could you rerun you test with |
Sure! Will keep |
When attempting to run the wgpu on m1 mac example I encounter this error. I know it has to do with selecting the adapter and I'm not sure why it isn't finding Metal ..
cargo xcodebuild run ✹ Compiling wgpu v0.1.0 (/Users/gennaroschiano/Documents/GitHub/cargo-xcodebuild/examples/wgpu) error[E0599]: no associated item named
Metalfound for struct
Backendsin the current scope --> examples/wgpu/src/framework.rs:89:86 | 89 | let backend = wgpu::util::backend_bits_from_env().unwrap_or_else(wgpu::Backends::Metal); | ^^^^^ associated item not found in
Backends`For more information about this error, try
rustc --explain E0599
.error: could not compile
wgpu
due to previous errorCompiling wgpu v0.1.0 (/Users/gennaroschiano/Documents/GitHub/cargo-xcodebuild/examples/wgpu)
error[E0599]: no associated item named
Metal
found for structBackends
in the current scope--> examples/wgpu/src/framework.rs:89:86
|
89 | let backend = wgpu::util::backend_bits_from_env().unwrap_or_else(wgpu::Backends::Metal);
| ^^^^^ associated item not found in
Backends
For more information about this error, try
rustc --explain E0599
.error: could not compile
wgpu
due to previous errorCompiling wgpu v0.1.0 (/Users/gennaroschiano/Documents/GitHub/cargo-xcodebuild/examples/wgpu)
error[E0599]: no associated item named
Metal
found for structBackends
in the current scope--> examples/wgpu/src/framework.rs:89:86
|
89 | let backend = wgpu::util::backend_bits_from_env().unwrap_or_else(wgpu::Backends::Metal);
| ^^^^^ associated item not found in
Backends
For more information about this error, try
rustc --explain E0599
.error: could not compile
wgpu
due to previous error[2022-07-04T15:42:38Z ERROR mobile_device] Value from property
DeviceClass
is nullthread 'main' panicked at 'called
Option::unwrap()
on aNone
value', /Users/gennaroschiano/.cargo/registry/src/github.com-1ecc6299db9ec823/mobile-device-0.1.0/src/lib.rs:115:76stack backtrace:
0: rust_begin_unwind
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/core/src/panicking.rs:143:14
2: core::panicking::panic
at /rustc/fe5b13d681f25ee6474be29d748c65adcd91f69e/library/core/src/panicking.rs:48:5
3: mobile_device::get_device_list
4: cargo_xcodebuild::xcodebuild::Xcodebuild::find_device
5: cargo_xcodebuild::xcodebuild::Xcodebuild::build
6: cargo_xcodebuild::main`
thanks for any help in advance!
The text was updated successfully, but these errors were encountered: