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

Using direct3D directly with Win2D panels #626

Closed
claudiuslollarius opened this issue Jul 4, 2018 · 1 comment
Closed

Using direct3D directly with Win2D panels #626

claudiuslollarius opened this issue Jul 4, 2018 · 1 comment
Labels

Comments

@claudiuslollarius
Copy link

Is it possible to somehow get access to the Direct3D device Win2D panels use for rendering and use that directly?

CanvasAnimatedPanel and related Win2D panels provide a lot of useful functionality for 3D applications, such as handling resizing of the swapchain based on Xaml layout size/orientation changes, trimming on suspension and a game loop with configurable time step.

It would be nice to take advantage of this functionality when doing 3D rendering too, instead of having to write the platform boilerplate code from scratch every time (or copy/paste from the sample).

If not from CanvasAnimatedPanel itself, would it be possible to subclass it or one of its parent to achieve the same thing?

@shawnhar
Copy link
Member

shawnhar commented Jul 5, 2018

Take a look at the Direct3D Interop sample (part of Win2D Example Gallery).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants