retep998 / winapi-rs

Rust bindings to Windows API
https://crates.io/crates/winapi
Apache License 2.0
1.82k stars 388 forks source link

DirectX bindings #47

Open ethan-tqa opened 9 years ago

ethan-tqa commented 9 years ago

Is there any plan to support DirectX API here?

ethan-tqa commented 9 years ago

Scratch that, I found the d3d libs. But it looks like DX 11.1 and 11.2 are missing

retep998 commented 9 years ago

At the moment I've only included libraries from version 8.1 of the Windows Kit. That said, if you want support for libraries provided by a different version or from a different SDK released by Microsoft, I'd be glad to setup crates with the lists of exports so they can be filled out.

retep998 commented 9 years ago

According to Microsoft, the last standalone DirectX SDK was in 2010, and since then the DirectX libraries have always been bundled with with the Windows SDK. Considering I'm working off the latest Windows SDK, I can only assume that DX 11.1 and 11.2 do not have separate libraries but are rather extra functionality bundled into the existing libraries.

ethan-tqa commented 9 years ago

the header files for them are availabale in Kits 8.1 too

retep998 commented 9 years ago

Some of DirectX has been added in https://github.com/retep998/winapi-rs/pull/59

kvark commented 8 years ago

Does the missing DX11 shader reflection stuff count as a part of this issue, or should I create a separate one?

SimonSapin commented 6 years ago

I’m not familiar with these APIs, but winapi::um::d3d12 and winapi::um::d3d12shader modules now exist.

henrikvik commented 5 years ago

Hello! I want to work with the new Ray tracing API but its very new so there are no bindings,

to work with the official RS5 DXR API, please update to the latest public release of Windows, the October 2018 update (builds 1809)

Any plans on updating this in the near feature?

repi commented 5 years ago

We also would be very interested in getting the d3d12 binding updated to include the RS5 DXR additions

DethRaid commented 4 years ago

@repi I've just submitted PR https://github.com/retep998/winapi-rs/pull/812 which adds support for DXR, among other things

repi commented 4 years ago

Awesome, good work!