microsoft / wdkmetadata

Tooling to generate metadata for Win32 APIs in the Windows Driver Kit (WDK).
Other
96 stars 10 forks source link

Add support for D3DKMT* APIs in d3dkmthk.h #21

Closed xeysz closed 1 year ago

xeysz commented 2 years ago

I use the D3DKMT* APIs a lot to test WDDM drivers. I currently use bindgen for these APIs since they're neither in winapi-rs, windows, or windows-sys, but I'd love to see them officially supported here 😃.

elachlan commented 2 years ago

The header file d3dkmthk.h exists in the source code. I guess its just a matter of setting it up.

mikebattista commented 1 year ago

I think the WDK metadata would be more appropriate for this. Transferring the issue over there.

mikebattista commented 1 year ago

What is the full set of headers you include for this to compile?

xeysz commented 1 year ago

This is all I use for the D3DKMT* functions and types

#include <Windows.h>
#include <d3dkmthk.h>
mikebattista commented 1 year ago

Thanks. Once we ship an update here these APIs should be available in the windows crate under Windows.Wdk.Graphics.Direct3D.