예제 #1
0
 private void DisposeDevice()
 {
     UnloadContent();
     RenderTarget.Dispose();
     GraphicsDevice.ImmediateContext.Rasterizer.State.Dispose();
     GraphicsDevice.Dispose();
     SwapChain.Dispose();
 }
예제 #2
0
파일: Core.cs 프로젝트: walogia/ModelViewer
 private void DisposeDevice()
 {
     UnloadContent();
     factor?.Dispose();
     device.ImmediateContext.OutputMerger.BlendState?.Dispose();
     device.ImmediateContext?.Dispose();
     depthStencil?.Dispose();
     renderTarget?.Dispose();
     device?.Dispose();
     swapChain?.Dispose();
 }