Skip to content

Commit 7c995d2

Browse files
committed
fix clippy error
1 parent aa15f97 commit 7c995d2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

wgpu-hal/src/vulkan/adapter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,7 @@ impl super::Instance {
15091509
}),
15101510
image_format_list: phd_capabilities.device_api_version >= vk::API_VERSION_1_2
15111511
|| phd_capabilities.supports_extension(khr::image_format_list::NAME),
1512+
#[cfg(windows)]
15121513
external_memory_win32: phd_capabilities.device_api_version >= vk::API_VERSION_1_1
15131514
|| phd_capabilities.supports_extension(khr::external_memory_win32::NAME),
15141515
};

wgpu-hal/src/vulkan/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ struct PrivateCapabilities {
499499
robust_image_access2: bool,
500500
zero_initialize_workgroup_memory: bool,
501501
image_format_list: bool,
502+
#[cfg(windows)]
502503
external_memory_win32: bool,
503504
}
504505

0 commit comments

Comments
 (0)