public void MoveAssignFrom(RenderTargetViewBox other)
 {
     Utilities.Dispose <RenderTargetView>(ref RenderTargetView);
     RenderTargetView       = other.RenderTargetView;
     other.RenderTargetView = null;
     Resolution             = other.Resolution;
     other.Resolution       = new Size(-1, -1);
 }
Exemple #2
0
        public void HandleBackBufferResized(DepthStencilViewBox backBufferDepthView, RenderTargetViewBox backBufferRenderTargetView)
        {
            _backBufferRenderTargetView = backBufferRenderTargetView;
            _backBufferDepthView        = backBufferDepthView;

            if (_currentRenderTargetViews[0] == backBufferRenderTargetView ||
                _currentRenderTargetViews[1] == backBufferRenderTargetView ||
                _currentRenderTargetViews[2] == backBufferRenderTargetView ||
                _currentRenderTargetViews[3] == backBufferRenderTargetView ||
                _currentDepthStencilView == backBufferDepthView)
            {
                UpdateRenderTargetsInternal();
            }
        }