Hi, I can compile and render with WinRT/C++ core app. However I am getting a
DCOMPOSITION_ERROR_WINDOW_ALREADY_COMPOSED when I try to render with a SwapChainPanel in C# UWP app which has the C++ WinRT Component(skia+rendering logic) as a reference.
Searching for the above error gives the description, "The IDCompositionDevice::CreateTargetForHwnd method was called with hwnd and topmost parameters for which a visual tree already exists."
I am creating and initializing IDXGISwapChain3 and setting it to the SwapChainPanel like this
swapChainPanelNative->SetSwapChain(fSwapChain);
What am I doing wrong? Is UWP with SwapChainPanel supported?