Doesn't matter if it is Core 3.1 or 5. I always get the same ArcGISRuntimeException "Unknown error: DirectX failure CreateTexture code = 0x80070057" as soon as it loads the view. I've tried the documentation tutorial for a WPF app, and 2 of the ESRI github dotnet sample apps with the same result. .NET Fx versions work fine. I'm running VS 2019 16.9.4 and even installed the latest .NET 5 sdk just in case. I'm on Windows 10 Ent 64-bit 1909/18363.1500. I am accessing my PC remotely through Citrix Workspace so not sure if that could be some kind of issue. Here is the generated error:
MapsApp Error: 0 : Pulse Failed
Is Remote Desktop: False
Rendering Mode: Hardware
Surface Size: 2558,949
DPI: 144
Esri.ArcGISRuntime.ArcGISRuntimeException: Unknown error: DirectX failure CreateTexture code = 0x80070057
at Esri.ArcGISRuntime.ArcGISException.HandleCoreError(CoreError error, Boolean throwException)
at RuntimeCoreNet.GeneratedWrappers.Interop.CheckError(IntPtr errorHandle, Boolean throwOnFailure, GCHandle wrapperHandle)
at RuntimeCoreNet.GeneratedWrappers.CoreGeoView.Pulse()
at Esri.ArcGISRuntime.UI.Controls.GeoView.Esri.ArcGISRuntime.Internal.IDxSurfaceSource.Pulse()
at Esri.ArcGISRuntime.Internal.HostedSurfaceElement.CompositionTarget_Rendering(Object sender, EventArgs e)
An unhandled exception of type 'Esri.ArcGISRuntime.ArcGISRuntimeException' occurred in System.Private.CoreLib.dll
Unknown error: DirectX failure CreateTexture code = 0x80070057