microsoft / WPFDXInterop

Repo for WPF DX Interop support
MIT License
307 stars 98 forks source link

Component improvement: Microsoft.Wpf.Media.SurfaceQueueInteropHelper::SetPixelSize: can swapchain.Resize() be used instead of recreate on size changed? #5

Open rrelyea opened 8 years ago

rrelyea commented 8 years ago

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]