Add bindings for MediaFoundation - #2466
Conversation
|
There's still work to do. I've succesfully created a dev environment where I can build Silk.NET very similar to what the GitHub Actions workflow does. The bindings still have missing parts:
I remember having read that another PR that added WIC (#1674) mentioned something about Wrt to the other types, I need to verify if I can import only some of them without bringing all the types defined in their respective headers. And Any suggestions? |
Interesting, might need a ProjectReference.
To be honest, all of those seem like MediaFoundation APIs, so provided that those aren't in a non-MediaFoundation header (or otherwise pull in non-MediaFoundation APIs) I'd say just bring them all in. |
|
Btw feel free to ping in our Discord, GitHub tends to have a lot of noise (didn't realise this had outstanding questions!) |
|
Is this still being worked on? |
|
I came to a halt while working on this. I wanted to reproduce what Tanner has done in TerraFX for MediaFoundation, but it seems more difficult than I anticipated. I talked about the problems I encountered in the Silk's Discord. Basically, MediaFoundation has a lot of types, and those types come from many headers, and are grouped so I'd need to specify a different "--with-library" for some of those groups. I didn't know how to write the |
Summary of the PR
Adds support for MediaFoundation from the Windows SDK, which according to MSDN:
Related issues, Discord discussions, or proposals
As discussed in Discord, this is part of the ongoing effort to port the Stride Game Engine away from SharpDX and towards Silk.NET.