Skip to content

Commit 9b0ab68

Browse files
committed
fix clippy error
1 parent e81a7ae commit 9b0ab68

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
@@ -526,6 +526,7 @@ struct PrivateCapabilities {
526526
robust_image_access2: bool,
527527
zero_initialize_workgroup_memory: bool,
528528
image_format_list: bool,
529+
#[cfg(windows)]
529530
external_memory_win32: bool,
530531
}
531532

0 commit comments

Comments
 (0)