Does bgfx support winui3? #3096
-
Does bgfx support winui3? I'm having trouble figuring out how to do bgfx::init with SwapChainPanel. When I link bgfx as native static library, the BX_PLATFORM_WINRT macro is not enabled. According to the site below, the Windows App SDK code seems to belong to WINAPI_FAMILY_DESKTOP_APP. If bgfx does not support it, is there any plan to support it in the future? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Over years I supported different WinRT / WinPhone / etc. targets. MS is changing API so much that it's not worth supporting... It's mostly dead platform that no one cares about, and they messing with APIs non-stop. So I don't really know how to answer your question, I don't know what winui3 is, how is related to WinRT that was supported before, etc. |
Beta Was this translation helpful? Give feedback.
-
I did some research on WinUI3. WinUI3 is UI library in the Windows App SDK.
The Windos App SDK was called Project Reunion.
In Windows App SDK, the root namespace has been changed to Microsoft. In WinUI3 (Windows App SDK), there are packaged and unpackaged applications. The packaged and unpackaged apps switch depending on whether the following is specified or not.
I don't know about the relationship between WinUI3 and the past WinRT. |
Beta Was this translation helpful? Give feedback.
-
Next, I experimented with initializing bgfx in an unpackaged WinUI3 application. By modifying Platform.h, I forced BX_PLATFORM_WINRT to be enabled. The result failed with the following line *hr = swapChainPanelNative->SetSwapChain(swapChain); It seems that updating the SwapChainPanel can be done outside of the UI thread (Main thread), but its initialization (SetSwapChain) must be done in the UI thread.
I don't know how to avoid this failure. It might be nice to have an override option based on user responsibility as to which Platform Macro to enable. |
Beta Was this translation helpful? Give feedback.
Over years I supported different WinRT / WinPhone / etc. targets. MS is changing API so much that it's not worth supporting... It's mostly dead platform that no one cares about, and they messing with APIs non-stop.
So I don't really know how to answer your question, I don't know what winui3 is, how is related to WinRT that was supported before, etc.