File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -697,16 +697,17 @@ impl super::Device {
697697 }
698698
699699 #[ cfg( windows) ]
700- unsafe fn find_memory_type_index (
700+ fn find_memory_type_index (
701701 & self ,
702702 type_bits : u32 ,
703703 flags : vk:: MemoryPropertyFlags ,
704704 ) -> Option < usize > {
705- let mem_properties = self
706- . shared
707- . instance
708- . raw
709- . get_physical_device_memory_properties ( self . shared . physical_device ) ;
705+ let mem_properties = unsafe {
706+ self . shared
707+ . instance
708+ . raw
709+ . get_physical_device_memory_properties ( self . shared . physical_device )
710+ } ;
710711
711712 for ( i, mem_ty) in mem_properties
712713 . memory_types_as_slice ( )
Original file line number Diff line number Diff line change @@ -1087,6 +1087,7 @@ impl crate::Surface for super::Surface {
10871087 raw : swapchain. images [ index as usize ] ,
10881088 drop_guard : None ,
10891089 block : None ,
1090+ external_memory : None ,
10901091 usage : swapchain. config . usage ,
10911092 format : swapchain. config . format ,
10921093 raw_flags,
You can’t perform that action at this time.
0 commit comments