mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
Create vulkan instance on windows
This commit is contained in:
1 parent
40fb3fcdfd
commit
443a0d661f
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user