Skip to content

Commit 2fc0144

Browse files
committed
fix clippy error
1 parent 0495b1c commit 2fc0144

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
@@ -1499,6 +1499,7 @@ impl super::Instance {
14991499
}),
15001500
image_format_list: phd_capabilities.device_api_version >= vk::API_VERSION_1_2
15011501
|| phd_capabilities.supports_extension(khr::image_format_list::NAME),
1502+
#[cfg(windows)]
15021503
external_memory_win32: phd_capabilities.device_api_version >= vk::API_VERSION_1_1
15031504
|| phd_capabilities.supports_extension(khr::external_memory_win32::NAME),
15041505
};

wgpu-hal/src/vulkan/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ struct PrivateCapabilities {
451451
robust_image_access2: bool,
452452
zero_initialize_workgroup_memory: bool,
453453
image_format_list: bool,
454+
#[cfg(windows)]
454455
external_memory_win32: bool,
455456
}
456457

0 commit comments

Comments
 (0)