I'm trying to use anti aliasing
in WPF
and DirectX 9
.
I'm using the function:
d3dImage.SetBackBuffer(D3DResourceType.IDirect3DSurface9, m_ViewportRenderSurface);
but I got this error:
Exception thrown: 'System.ArgumentException' in PresentationCore.dll
Additional information: An antialiased back buffer requires a IDirect3DDevice9Ex device.
When using DirectX 9ex
everything works as expected.
Any idea how to make it work with DirectX 9
?
thanks
You can't do that. See note about multi sampling at https://msdn.microsoft.com/en-us/library/hh140978(v=vs.110).aspx