public void ReleaseDeviceResources() { Bitmaps?.Dispose(); SwapChain?.Dispose(); _solidBrush?.Dispose(); RenderTarget?.Dispose(); D3Device?.Dispose(); }
public void Dispose() { m_dwriteFactory?.Dispose(); m_d2dContext?.Dispose(); m_swapchain?.Dispose(); m_device?.Dispose(); m_context?.Dispose(); m_disposed = true; }