public void DisposeD3DResources() { // Dispose D3D Resources if ( _isSwapChain ) { _swapChain.Dispose(); _swapChain = null; } }