protected override void Dispose(bool disposing) { if (!disposing) { return; } FrequentlyUsedStates.Dispose(); _rootRenderTarget.Dispose(); }
internal RenderContext(StageRenderer renderer, Size clientSize) { Renderer = renderer; ClientSize = clientSize; Direct3DDevice = renderer.Direct3DDevice; DxgiDevice = renderer.DxgiDevice; DxgiFactory = renderer.DxgiFactory; SwapChain = renderer.SwapChain; SwapChainDescription = renderer.SwapChainDescription; DirectWriteFactory = renderer.DirectWriteFactory; DxgiDeviceManager = renderer.DxgiDeviceManager; FrequentlyUsedStates = new FrequentlyUsedStates(this); Initialize(); }