fix(windows-drivers): DXGI enum-modules + define UINT in iddcx module

Last iddcx type gaps: (1) DXGI enum newtypes are `pub use self::_DXGI_X::Type as
DXGI_X` — the `_DXGI_X` module needs allowlisting too (broaden DXGI_.* to
_?DXGI_.*, matching the OPM fix); (2) UINT bindgen raw_line landed in a scope the
bindings cannot see — define `pub type UINT` directly in src/iddcx.rs next to
`use crate::types::*` instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-24 14:49:11 +00:00
parent 9018878a25
commit 59deb7b0b1
2 changed files with 5 additions and 4 deletions
+4
View File
@@ -26,6 +26,10 @@ mod bindings {
)]
use crate::types::*;
// `UINT` (= unsigned int) is referenced by IddCx/DXGI/OPM structs but wdk-sys never uses it, so it
// is absent from crate::types. Define it here, in the same scope the generated bindings see.
pub type UINT = ::core::ffi::c_uint;
include!(concat!(env!("OUT_DIR"), "/iddcx.rs"));
}
#[allow(