From 6f7ad49ed99e6c1459cc1f8fbd380e32c9d79e49 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Tue, 30 Jan 2024 22:05:38 -0500 Subject: [PATCH] Fix Windows type alias definitions. --- openxr/src/graphics/d3d.rs | 1 - sys/src/platform.rs | 15 ++++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/openxr/src/graphics/d3d.rs b/openxr/src/graphics/d3d.rs index e519d466..5c7a23aa 100644 --- a/openxr/src/graphics/d3d.rs +++ b/openxr/src/graphics/d3d.rs @@ -87,7 +87,6 @@ impl Graphics for D3D11 { } } - /// The D3D12 graphics API /// /// See [`XR_KHR_d3d12_enable`] for safety details. diff --git a/sys/src/platform.rs b/sys/src/platform.rs index 94fdfc04..2c17b793 100644 --- a/sys/src/platform.rs +++ b/sys/src/platform.rs @@ -52,18 +52,15 @@ mod windows { use std::os::raw::c_void; - pub type IUnknown = *mut c_void; - pub type ID3D10Device = *const c_void; - pub type ID3D10Texture2D = *const c_void; - pub type D3D10_FEATURE_LEVEL1 = u32; + pub type IUnknown = c_void; pub type LARGE_INTEGER = i64; pub type HDC = isize; pub type HGLRC = isize; - pub type ID3D11Device = *mut c_void; - pub type ID3D11Texture2D = *mut c_void; - pub type ID3D12CommandQueue = *mut c_void; - pub type ID3D12Device = *mut c_void; - pub type ID3D12Resource = *mut c_void; + pub type ID3D11Device = c_void; + pub type ID3D11Texture2D = c_void; + pub type ID3D12CommandQueue = c_void; + pub type ID3D12Device = c_void; + pub type ID3D12Resource = c_void; pub type D3D_FEATURE_LEVEL = i32; #[derive(Copy, Clone)]