コード例 #1
0
 protected override void DisposeCore(bool isDisposing)
 {
     if (isDisposing)
     {
         _windowService.Dispose(DisposeWindowService);
     }
 }
コード例 #2
0
 protected override void DisposeCore(bool isDisposing)
 {
     if (isDisposing)
     {
         _audioService.Dispose(DisposeAudioService);
     }
 }
コード例 #3
0
 protected override void DisposeCore(bool isDisposing)
 {
     if (isDisposing)
     {
         _graphicsService.Dispose(DisposeGraphicsService);
         _baseServiceProvider?.Dispose();
     }
 }
コード例 #4
0
        /// <inheritdoc />
        protected override void Dispose(bool isDisposing)
        {
            var priorState = _state.BeginDispose();

            if (priorState < Disposing)
            {
                _d3d12Resource.Dispose(ReleaseIfNotNull);
            }

            _state.EndDispose();
        }
コード例 #5
0
        /// <inheritdoc />
        protected override void Dispose(bool isDisposing)
        {
            var priorState = _state.BeginDispose();

            if (priorState < Disposing)
            {
                _vulkanFence.Dispose(DisposeVulkanFence);
            }

            _state.EndDispose();
        }
コード例 #6
0
        /// <inheritdoc />
        protected override void Dispose(bool isDisposing)
        {
            var priorState = _state.BeginDispose();

            if (priorState < Disposing)
            {
                _vulkanDeviceMemory.Dispose(DisposeVulkanDeviceMemory);
            }

            _state.EndDispose();
        }
コード例 #7
0
        /// <inheritdoc />
        protected override void Dispose(bool isDisposing)
        {
            var priorState = _state.BeginDispose();

            if (priorState < Disposing)
            {
                _d3d12Fence.Dispose(ReleaseIfNotNull);
                _d3d12FenceSignalEvent.Dispose(DisposeEventHandle);
            }

            _state.EndDispose();
        }
コード例 #8
0
        /// <inheritdoc />
        protected override void Dispose(bool isDisposing)
        {
            var priorState = _state.BeginDispose();

            if (priorState < Disposing)
            {
                _vulkanShaderModule.Dispose(DisposeVulkanShaderModule);
                DisposeVulkanShaderModuleCreateInfo();
            }

            _state.EndDispose();
        }
コード例 #9
0
        /// <inheritdoc />
        protected override void Dispose(bool isDisposing)
        {
            var priorState = _state.BeginDispose();

            if (priorState < Disposing)
            {
                _vulkanSampler.Dispose(DisposeVulkanSampler);
                _vulkanImageView.Dispose(DisposeVulkanImageView);
                _vulkanImage.Dispose(DisposeVulkanImage);
            }

            _state.EndDispose();
        }
コード例 #10
0
        /// <inheritdoc />
        protected override void Dispose(bool isDisposing)
        {
            var priorState = _state.BeginDispose();

            if (priorState < Disposing)
            {
                _vulkanDescriptorSet.Dispose(DisposeVulkanDescriptorSet);
                _vulkanDescriptorSetLayout.Dispose(DisposeVulkanDescriptorSetLayout);
                _vulkanDescriptorPool.Dispose(DisposeVulkanDescriptorPool);
                _vulkanPipelineLayout.Dispose(DisposeVulkanPipelineLayout);
            }

            _state.EndDispose();
        }
コード例 #11
0
        /// <inheritdoc />
        protected override void Dispose(bool isDisposing)
        {
            var priorState = _state.BeginDispose();

            if (priorState < Disposing)
            {
                _vulkanPipeline.Dispose(DisposeVulkanPipeline);

                Signature?.Dispose();
                PixelShader?.Dispose();
                VertexShader?.Dispose();
            }

            _state.EndDispose();
        }
コード例 #12
0
        /// <inheritdoc />
        protected override void Dispose(bool isDisposing)
        {
            var priorState = _state.BeginDispose();

            if (priorState < Disposing)
            {
                _d3d12PipelineState.Dispose(ReleaseIfNotNull);

                DisposeIfNotNull(Signature);
                DisposeIfNotNull(PixelShader);
                DisposeIfNotNull(VertexShader);
            }

            _state.EndDispose();
        }
コード例 #13
0
        /// <inheritdoc />
        protected override void Dispose(bool isDisposing)
        {
            var priorState = _state.BeginDispose();

            if (priorState < Disposing)
            {
                _graphicsAdapters.Dispose(DisposeIfNotDefault);
                _dxgiFactory.Dispose(ReleaseIfNotNull);

                if (DebugModeEnabled)
                {
                    TryReportLiveObjects();
                }
            }

            _state.EndDispose();
コード例 #14
0
        /// <inheritdoc />
        protected override void Dispose(bool isDisposing)
        {
            var priorState = _state.BeginDispose();

            if (priorState < Disposing)
            {
                _d3d12GraphicsCommandList.Dispose(ReleaseIfNotNull);
                _d3d12CommandAllocator.Dispose(ReleaseIfNotNull);
                _d3d12RenderTargetView.Dispose();
                _d3d12RenderTargetResource.Dispose(ReleaseIfNotNull);

                DisposeIfNotNull(_waitForExecuteCompletionGraphicsFence);
                DisposeIfNotNull(_graphicsFence);
            }

            _state.EndDispose();
        }
コード例 #15
0
        /// <inheritdoc />
        protected override void Dispose(bool isDisposing)
        {
            var priorState = _state.BeginDispose();

            if (priorState < Disposing)
            {
                _vulkanCommandBuffer.Dispose(DisposeVulkanCommandBuffer);
                _vulkanCommandPool.Dispose(DisposeVulkanCommandPool);
                _vulkanFramebuffer.Dispose(DisposeVulkanFramebuffer);
                _vulkanSwapChainImageView.Dispose(DisposeVulkanSwapChainImageView);

                DisposeIfNotNull(_waitForExecuteCompletionGraphicsFence);
                DisposeIfNotNull(_graphicsFence);
            }

            _state.EndDispose();
        }
コード例 #16
0
        /// <inheritdoc />
        protected override void Dispose(bool isDisposing)
        {
            var priorState = _state.BeginDispose();

            if (priorState < Disposing)
            {
                if (_adapters.IsValueCreated)
                {
                    foreach (var adapter in _adapters.Value)
                    {
                        adapter?.Dispose();
                    }
                }

                _dxgiFactory.Dispose(ReleaseIfNotNull);

                if (DebugModeEnabled)
                {
                    TryReportLiveObjects();
                }
            }

            _state.EndDispose();
コード例 #17
0
 protected override void DisposeCore(bool isDisposing)
 {
     _graphicsService.Dispose(DisposeGraphicsService);
     base.DisposeCore(isDisposing);
 }