File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments