File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -723,11 +723,11 @@ impl super::Device {
723723 }
724724
725725 /// # Safety
726- ///
726+ /// The `d3d11_shared_handle` must be valid and respecting `desc`.
727727 #[ cfg( windows) ]
728728 pub unsafe fn texture_from_d3d11_shared_handle (
729729 & self ,
730- d3d11_shared_handle : vk :: HANDLE ,
730+ d3d11_shared_handle : * mut std :: ffi :: c_void ,
731731 desc : & crate :: TextureDescriptor ,
732732 ) -> ash:: prelude:: VkResult < super :: Texture > {
733733 let copy_size = desc. copy_extent ( ) ;
@@ -786,7 +786,7 @@ impl super::Device {
786786
787787 let mut import_memory_info = vk:: ImportMemoryWin32HandleInfoKHR :: default ( )
788788 . handle_type ( vk:: ExternalMemoryHandleTypeFlags :: D3D11_TEXTURE_KMT )
789- . handle ( d3d11_shared_handle) ;
789+ . handle ( d3d11_shared_handle as _ ) ;
790790
791791 let Some ( mem_type_index) = self
792792 . find_memory_type_index ( req. memory_type_bits , vk:: MemoryPropertyFlags :: DEVICE_LOCAL )
You can’t perform that action at this time.
0 commit comments