Skip to content
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 support for a D3D11 backend #89

Closed
emberian opened this issue Jul 9, 2014 · 15 comments
Closed

Add support for a D3D11 backend #89

emberian opened this issue Jul 9, 2014 · 15 comments

Comments

@emberian
Copy link
Contributor

emberian commented Jul 9, 2014

I'm working on this. Everything we do so far is D3D11 compatible. I am not checking for D3D9 compatability, having a D3D9 fallback would be a later project.

@emberian
Copy link
Contributor Author

emberian commented Jul 9, 2014

First thing we need is a way to generate Rust bindings from COM IDL files.

@emberian emberian self-assigned this Jul 9, 2014
@brendanzab
Copy link
Contributor

Linked to #56?

@emberian
Copy link
Contributor Author

emberian commented Jul 9, 2014

I originally thought so as well but indeed not. --cfg d3d works just as
well. Runtime switching is more like being able to change the backend,
while the app is running, in a settings screen. (This of course involves
tearing down all the state and building it back up again with the new API,
perhaps not worth it)

On Wed, Jul 9, 2014 at 8:22 AM, Brendan Zabarauskas <
notifications@github.com> wrote:

Linked to #56 https://github.com/bjz/gfx-rs/issues/56?


Reply to this email directly or view it on GitHub
https://github.com/bjz/gfx-rs/issues/89#issuecomment-48487990.

http://octayn.net/

@emberian
Copy link
Contributor Author

Status: working on COM bindings generator. Due to the cpp_quote macro in MIDL, they basically contain arbitrary C code! This is annoying, but bindgen should be able to cope with this. Unfortunately I'm hitting lots of bugs with it. And this is just for the lowest-level COM API, not even trying to add Rust goodness to it.

@brendanzab
Copy link
Contributor

This is pretty exciting despite your issues!

@emberian
Copy link
Contributor Author

I'm leaving this in backlog until the COM generator is working, which I think is going to take a lot longer than I hoped. In particular there are some rust-bindgen/libclang bugs that will take a while to resolve, as well as windows cross-compiling being broken on Linux right now.

@emberian
Copy link
Contributor Author

emberian commented Nov 3, 2014

https://github.com/cmr/d3d11-rs 😄

@bvssvni
Copy link
Contributor

bvssvni commented Nov 3, 2014

@cmr You are awesome!

@brendanzab
Copy link
Contributor

\o/

@kvark
Copy link
Member

kvark commented Jan 30, 2015

Any updates on this one? Is it still blocked?

@kvark
Copy link
Member

kvark commented Mar 2, 2015

The new hope: https://github.com/retep998/winapi-rs

@retep998
Copy link

retep998 commented Mar 4, 2015

[Insert comment]

@kvark
Copy link
Member

kvark commented Mar 6, 2015

DX9 is landing in retep998/winapi-rs#59

@retep998
Copy link

DX11 is landing in retep998/winapi-rs#187

@sectopod
Copy link
Contributor

Grabbing due to inactivity

@sectopod sectopod mentioned this issue Jan 31, 2016
@sectopod sectopod assigned sectopod and unassigned emberian Jan 31, 2016
@kvark kvark added this to the Prime Time milestone Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment