Implement AcceleratedPaintInfo so the shared texture can be used for accelerated rendering in a custom IRenderHandler.
Code was successfully tested against Direct3D11.1 using SharpDX on Windows 11.
Use SharpDX.Direct3D11.Device1.OpenSharedResource1< Texture2D >(AcceleratedPaintInfo.SharedTextureHandle);
Then copy the contents of this resource to your own Texture2D before returning from OnAcceleratedPaint().
Implement AcceleratedPaintInfo so the shared texture can be used for accelerated rendering in a custom IRenderHandler. Code was successfully tested against Direct3D11.1 using SharpDX on Windows 11. Use SharpDX.Direct3D11.Device1.OpenSharedResource1< Texture2D >(AcceleratedPaintInfo.SharedTextureHandle); Then copy the contents of this resource to your own Texture2D before returning from OnAcceleratedPaint().