Skip to content

Commit 1d8cdfb

Browse files
committed
change d3d11_shared_handle type to *mut c_void
1 parent dca976e commit 1d8cdfb

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
@@ -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)

0 commit comments

Comments
 (0)