public bool PerformResetOnException(SharpDXException ex) { if (ErrorHelpers.ShouldResetDxgiForError(ex.Descriptor) || ErrorHelpers.ShouldResetD2DForError(ex.Descriptor)) { this.m_d3D?.Destroy(); return(true); } return(false); }