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 @@ -716,11 +716,11 @@ impl super::Device {
716716 }
717717
718718 /// # Safety
719- ///
719+ /// The `d3d11_shared_handle` must be valid and respecting `desc`.
720720 #[ cfg( windows) ]
721721 pub unsafe fn texture_from_d3d11_shared_handle (
722722 & self ,
723- d3d11_shared_handle : vk :: HANDLE ,
723+ d3d11_shared_handle : * mut std :: ffi :: c_void ,
724724 desc : & crate :: TextureDescriptor ,
725725 ) -> ash:: prelude:: VkResult < super :: Texture > {
726726 let copy_size = desc. copy_extent ( ) ;
@@ -779,7 +779,7 @@ impl super::Device {
779779
780780 let mut import_memory_info = vk:: ImportMemoryWin32HandleInfoKHR :: default ( )
781781 . handle_type ( vk:: ExternalMemoryHandleTypeFlags :: D3D11_TEXTURE_KMT )
782- . handle ( d3d11_shared_handle) ;
782+ . handle ( d3d11_shared_handle as _ ) ;
783783
784784 let Some ( mem_type_index) = self
785785 . find_memory_type_index ( req. memory_type_bits , vk:: MemoryPropertyFlags :: DEVICE_LOCAL )
You can’t perform that action at this time.
0 commit comments