From 443a0d661fc73d8c1a7b5a5cc8d9faeb88bb622e Mon Sep 17 00:00:00 2001 From: Daniel Salvadori Date: Tue, 3 Sep 2019 17:41:52 -0300 Subject: [PATCH] Create vulkan instance on windows --- wgpu-native/src/instance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-native/src/instance.rs b/wgpu-native/src/instance.rs index c3b46f17c..9229acb42 100644 --- a/wgpu-native/src/instance.rs +++ b/wgpu-native/src/instance.rs @@ -40,7 +40,7 @@ impl Instance { pub(crate) fn new(name: &str, version: u32) -> Self { Instance { //TODO: reconsider once `create` returns a `Result` - vulkan: if cfg!(all(unix, not(target_os = "ios"), not(target_os = "macos"))) { + vulkan: if cfg!(all(any(unix, windows), not(target_os = "ios"), not(target_os = "macos"))) { Some(gfx_backend_vulkan::Instance::create(name, version)) } else { None