Skip to content

Commit

Permalink
Fix Windows type alias definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm authored and Ralith committed Feb 23, 2024
1 parent 0c75305 commit 6f7ad49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion openxr/src/graphics/d3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ impl Graphics for D3D11 {
}
}


/// The D3D12 graphics API
///
/// See [`XR_KHR_d3d12_enable`] for safety details.
Expand Down
15 changes: 6 additions & 9 deletions sys/src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 6f7ad49

Please sign in to comment.