-
-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a d3d11 wrapper #187
Add a d3d11 wrapper #187
Conversation
@@ -1,15 +1,20 @@ | |||
[package] | |||
name = "d3d11-sys" | |||
version = "0.0.1" | |||
version = "0.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't change the crate version. I do that when I publish things to crates.io
Thanks! Reverted the version change and rebased onto master. Building should be successful. |
// pub fn D3D11CreateDevice(); | ||
// pub fn D3D11CreateDeviceAndSwapChain(); | ||
|
||
pub fn D3D11CreateDevice(pAdapter: *const IDXGIAdapter, DriverType: D3D_DRIVER_TYPE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the multiline function style as dictated in CONTRIBUTING.md
.
Also make sure all binary operators have spaces on both sides. I see a few cases where you're missing a space on the left of an |
winapi = "*" | ||
winapi = { version = "*", path = "../.." } | ||
[build-dependencies] | ||
winapi-build = { version = "*", path = "../../build" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing end of file newline.
c47e3ff
to
5a38095
Compare
Thanks for reviewing.
|
Bindings to d3d11 (including the Video API) and the structs/enums/constants.
I tested it with a small demo application with a msvc rust build. (MinGW needs additional libraries?)
NOTE: Requires changes to the interface macro
RIDL!
and #164 for building.https://github.com/msiglreith/winapi-rs/blob/8210ef6df600abe9f77d65aa9c2b9e5697dbe383/src/d3d11.rs#L1263
pub const
for easier use?