Skip to content

Commit 8be2b18

Browse files
committed
change d3d11_shared_handle type to *mut c_void
1 parent 3f92905 commit 8be2b18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wgpu-hal/src/vulkan/device.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)