Rendering to a CoreWindow
The XAML view provider found in the Windows Store app graphics framework cannot be modified. Therefore, when we want to implement the application's graphics completely within DirectX/Direct3D without XAML interoperation, it is necessary to create a basic view provider that allows us to connect our DirectX graphics device resources to the windowing infrastructure of our Windows Store app.
In this recipe, we will implement a CoreWindow
swap-chain target and look at how to hook Direct3D directly to the windowing infrastructure of a Windows Store app, which is exposed by the CoreApplication
, IFrameworkViewSource
, IFrameworkView
, and CoreWindow
.NET types.
This recipe continues from where we left off with the Preparing the swap chain for Windows Store apps recipe.
How to do it…
We will first update the Common.WinRT
project to support the creation of a swap chain for a Windows Store app's CoreWindow
instance and then implement a simple Hello World application.
Let's begin...