how to get the swap chain when using the lib on windows with d3d11 #17124
-
|
Hi there folks, I am trying to do some experiments using libmpv to paint over maui SwapChainPanels on windows and came up with some code but, it seems i am not able to get the swapchain because it returns property unavailable. my code is roughly this: mpv_set_option_string(ctx, "keep-open", "always");
mpv_set_option_string(ctx, "vo", "gpu-next");
mpv_set_option_string(ctx, "gpu-context", "d3d11");
mpv_set_option_string(ctx, "d3d11-output-mode", "composition");
if (!mpv_initialize(ctx))
...
if (!mpv_get_property("display-swapchain", 4, &ptr))
...do you see anything obviously wrong there? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
swapchain won't be available until you create some video output, with playing file or forcing window to be open in idle mode. |
Beta Was this translation helpful? Give feedback.
-
|
hey @kasper93 thanks for the answer. |
Beta Was this translation helpful? Give feedback.
swapchain won't be available until you create some video output, with playing file or forcing window to be open in idle mode.