mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 15:31:03 +01:00
Better compile error for not using resolver=2.
This commit is contained in:
1 parent
ca291bfc4f
commit
1dea443340
1 file changed
+4
-1
+4
-1
@@ -45,8 +45,11 @@
|
||||
clippy::pattern_type_mismatch,
|
||||
)]
|
||||
|
||||
#[cfg(all(feature = "metal", not(any(target_os = "macos", target_os = "ios"))))]
|
||||
compile_error!("Metal backend enabled on non-Apple OS. If your project is not using resolver=\"2\" in Cargo.toml, it should.");
|
||||
|
||||
mod empty;
|
||||
#[cfg(feature = "metal")]
|
||||
#[cfg(all(feature = "metal", any(target_os = "macos", target_os = "ios")))]
|
||||
mod metal;
|
||||
#[cfg(feature = "vulkan")]
|
||||
mod vulkan;
|
||||
|
||||
Reference in new issue
Block a user