mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01:00
Merge #325
325: Create vulkan instance on windows r=kvark a=danaugrs Co-authored-by: Daniel Salvadori <danaugrs@gmail.com>
This commit is contained in:
commit
a2956c0d42
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