Skip to content

Commit 6a1cdae

Browse files
committed
fix extensions
1 parent 9fb8b4f commit 6a1cdae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

wgpu-hal/src/vulkan/adapter.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -903,11 +903,6 @@ impl PhysicalDeviceProperties {
903903
if requested_features.contains(wgt::Features::TEXTURE_FORMAT_NV12) {
904904
extensions.push(khr::sampler_ycbcr_conversion::NAME);
905905
}
906-
907-
// Optional `VK_KHR_external_memory_win32`
908-
if self.supports_extension(khr::external_memory_win32::NAME) {
909-
extensions.push(khr::external_memory_win32::NAME);
910-
}
911906
}
912907

913908
if self.device_api_version < vk::API_VERSION_1_2 {
@@ -975,6 +970,11 @@ impl PhysicalDeviceProperties {
975970
extensions.push(ext::robustness2::NAME);
976971
}
977972

973+
// Optional `VK_KHR_external_memory_win32`
974+
if self.supports_extension(khr::external_memory_win32::NAME) {
975+
extensions.push(khr::external_memory_win32::NAME);
976+
}
977+
978978
// Require `VK_KHR_draw_indirect_count` if the associated feature was requested
979979
// Even though Vulkan 1.2 has promoted the extension to core, we must require the extension to avoid
980980
// large amounts of spaghetti involved with using PhysicalDeviceVulkan12Features.

0 commit comments

Comments
 (0)