In Direct2D 1.0, I can check whether the EndDraw() method of ID2D1HwndRenderTarget returns an D2DERR_RECREATE_TARGET to discard all device-dependent resources and then reinitialize them. In Direct2D 1.0, I can do InvalidateRect() everytime I want to
而这个工具就是今天在这里介绍的Eslint。 Eslint是什么
SharpDX.SharpDXException: HRESULT: [0x8899000C], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_RECREATE_TARGET/RecreateTarget], Message: There has been a presentation error that may be recoverable. The caller needs to recreate, rerender the entire frame, and reattempt present.#567 ...
Handle SharpDX.SharpDXException: HRESULT: [0x8899000C], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_RECREATE_TARGET/RecreateTarget], Message: There has been a presentation error that may be recoverable. The caller needs to recreate, rerender the entire frame, and reattempt present. I' ...