Exemplo n.º 1
0
 public void Dispose()
 {
     RenderTargetView.Dispose();
     BackBuffer.Dispose();
     DeviceContext.ClearState();
     DeviceContext.Flush();
     DeviceContext.Dispose();
     Device.Dispose();
     SwapChain.Dispose();
     Factory.Dispose();
 }
        public void Dispose()
        {
            RenderTargetView.Dispose();
            BackBuffer.Dispose();
            DeviceContext.ClearState();
            DeviceContext.Flush();
            DeviceContext.Dispose();
            Device.Dispose();
            SwapChain.Dispose();
            Adapter.Dispose();
            Factory.Dispose();

            if (DXGIGetDebugInterface1(out IDXGIDebug1 dxgiDebug).Success)
            {
                dxgiDebug.ReportLiveObjects(All, ReportLiveObjectFlags.Summary | ReportLiveObjectFlags.IgnoreInternal);
                dxgiDebug.Dispose();
            }
        }
Exemplo n.º 3
0
 public void Reset()
 {
     _commandList?.Dispose();
     _commandList = null;
     D3D11Context.ClearState();
 }