Skip to content

Commit 7a0ab9a

Browse files
committed
fix clippy error
1 parent b84e2f8 commit 7a0ab9a

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
@@ -1544,6 +1544,7 @@ impl super::Instance {
15441544
}),
15451545
image_format_list: phd_capabilities.device_api_version >= vk::API_VERSION_1_2
15461546
|| phd_capabilities.supports_extension(khr::image_format_list::NAME),
1547+
#[cfg(windows)]
15471548
external_memory_win32: phd_capabilities.device_api_version >= vk::API_VERSION_1_1
15481549
|| phd_capabilities.supports_extension(khr::external_memory_win32::NAME),
15491550
};

wgpu-hal/src/vulkan/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ struct PrivateCapabilities {
532532
robust_image_access2: bool,
533533
zero_initialize_workgroup_memory: bool,
534534
image_format_list: bool,
535+
#[cfg(windows)]
535536
external_memory_win32: bool,
536537
}
537538

0 commit comments

Comments
 (0)