You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to add into a MAUI app a MAUI View that display a 3D rendering on windows platform with DirectX9 implementation.
This rendering will be like in a video game, into a game loop. I know DirectX9 is old api.
I found examples with DirectX11 that use SwapChainPanel and Handler pattern.
I tried to did the equivalent with Directx9 but it doesn't seem like the right way.
DirectX9 uses its own SwapChain that need a HWND and MAUI Views don't have HWND if my understanding is correct.
It looks I can initialize it with HWND from the MauiWinUIWindow but rendering looks not visible, I guess this display is behind the MainContent of the app.
My understanding is SwapChainPanel has to use SwapChain from DXGI but it is not compatible with Directx9, it is compatible with DirectX11 and 12.
So my questions are:
Is it is possible to integrate a 3D rendering with DirectX9 into a MAUI application on Windows Platform with good performances?
If yes, can you share me a way to do that or an existing sample?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to add into a MAUI app a MAUI View that display a 3D rendering on windows platform with DirectX9 implementation.
This rendering will be like in a video game, into a game loop. I know DirectX9 is old api.
I found examples with DirectX11 that use SwapChainPanel and Handler pattern.
I tried to did the equivalent with Directx9 but it doesn't seem like the right way.
DirectX9 uses its own SwapChain that need a HWND and MAUI Views don't have HWND if my understanding is correct.
It looks I can initialize it with HWND from the MauiWinUIWindow but rendering looks not visible, I guess this display is behind the MainContent of the app.
My understanding is SwapChainPanel has to use SwapChain from DXGI but it is not compatible with Directx9, it is compatible with DirectX11 and 12.
So my questions are:
Is it is possible to integrate a 3D rendering with DirectX9 into a MAUI application on Windows Platform with good performances?
If yes, can you share me a way to do that or an existing sample?
Beta Was this translation helpful? Give feedback.
All reactions