-
Notifications
You must be signed in to change notification settings - Fork 953
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 WinUI 3 SwapChainPanel support #4191
Conversation
Code generally looks fine, there's a bit of architectural stuff I want to deal with after this lands, but lets land first. |
Sample code for how to get the correct pointer to send to native code in c#
|
85218af
to
e49573c
Compare
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.
Lets do it!
🎊 |
Hi @DDRBoxman, nice work!
|
@Codentale take a look here |
Checklist
cargo clippy
.cargo clippy --target wasm32-unknown-unknown
if applicable.Connections
Closes #4187
Description
Currently WinUI3 requires using a SwapChainPanel to render into a widget with directx.
This allows passing down a SwapChainPanel reference and then sets the swap chain on the panel.
Testing
Called from a C# Win UI App and rendered the triangle from the tutorial to the swap chain