public void Dispose() { mSwapChain.Dispose(); mRenderTarget.Dispose(); mDepthBuffer.Dispose(); mDepthStencilView.Dispose(); mDevice.Dispose(); }