Component improvement: Microsoft.Wpf.Media.SurfaceQueueInteropHelper::SetPixelSize: can swapchain.Resize() be used instead of recreate on size changed? #5
I see that on size changed IntPtr of the surface is changed, which will lead to recreation of the whole swapchain instead of simple swapchain.Resize(). I think this is caused by the fact that WPF internally is still working on DirectX 9 and DirectX 9 has no way to resize swapchain, but DirectX 10 and higher - does.
I see that on size changed IntPtr of the surface is changed, which will lead to recreation of the whole swapchain instead of simple swapchain.Resize(). I think this is caused by the fact that WPF internally is still working on DirectX 9 and DirectX 9 has no way to resize swapchain, but DirectX 10 and higher - does.
[Originally filed by QuantumDeveloper as part of "D3DImage possible issues" https://github.com/Microsoft/WPFDXInterop/issues/2]