{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/WPFDXInterop/issues/5","labels_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/issues/5/comments","events_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/issues/5/events","html_url":"https://github.com/Microsoft/WPFDXInterop/issues/5","id":114306224,"number":5,"title":"Component improvement: Microsoft.Wpf.Media.SurfaceQueueInteropHelper::SetPixelSize: can swapchain.Resize() be used instead of recreate on size changed?","user":{"login":"rrelyea","id":8865080,"avatar_url":"https://avatars.githubusercontent.com/u/8865080?v=3","gravatar_id":"","url":"https://api.github.com/users/rrelyea","html_url":"https://github.com/rrelyea","followers_url":"https://api.github.com/users/rrelyea/followers","following_url":"https://api.github.com/users/rrelyea/following{/other_user}","gists_url":"https://api.github.com/users/rrelyea/gists{/gist_id}","starred_url":"https://api.github.com/users/rrelyea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrelyea/subscriptions","organizations_url":"https://api.github.com/users/rrelyea/orgs","repos_url":"https://api.github.com/users/rrelyea/repos","events_url":"https://api.github.com/users/rrelyea/events{/privacy}","received_events_url":"https://api.github.com/users/rrelyea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-30T16:32:20Z","updated_at":"2015-10-30T16:32:20Z","closed_at":null,"body":"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.\r\n\r\n[Originally filed by QuantumDeveloper as part of \"D3DImage possible issues\" https://github.com/Microsoft/WPFDXInterop/issues/2]"}}