Create vulkan instance on windows

This commit is contained in:
Daniel Salvadori committed 2019-09-03 17:41:52 -03:00
1 parent 40fb3fcdfd
commit 443a0d661f
1 file changed
+1 -1
+1 -1
View File
@@ -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