From 8d13d976637fb4c21c4b9cdeaecd7700db834744 Mon Sep 17 00:00:00 2001 From: Alex S Date: Fri, 18 Jun 2021 19:25:23 +0300 Subject: [PATCH] Fix failing test compilation on windows - DX12 and DX11 not there. --- wgpu-core/src/macros.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wgpu-core/src/macros.rs b/wgpu-core/src/macros.rs index a8bf6c1ef..edaed6ba9 100644 --- a/wgpu-core/src/macros.rs +++ b/wgpu-core/src/macros.rs @@ -65,10 +65,10 @@ fn test_backend_macro() { #[cfg(any(target_os = "ios", target_os = "macos"))] metal: u32, - #[cfg(windows)] + #[cfg(dx12)] dx12: u32, - #[cfg(windows)] + #[cfg(dx11)] dx11: u32, } @@ -110,10 +110,10 @@ fn test_backend_macro() { #[cfg(any(target_os = "ios", target_os = "macos"))] assert!(vec.contains(&(2, 'b'))); - #[cfg(windows)] + #[cfg(dx12)] assert!(vec.contains(&(3, 'c'))); - #[cfg(windows)] + #[cfg(dx11)] assert!(vec.contains(&(4, 'd'))); // test complex statement-per-backend @@ -206,9 +206,9 @@ fn test_backend_macro() { #[cfg(any(target_os = "ios", target_os = "macos"))] let _ = var_metal; - #[cfg(windows)] + #[cfg(dx12)] let _ = var_dx12; - #[cfg(windows)] + #[cfg(dx11)] let _ = var_dx11; }