From d522ab7ca00a66c875822f74c27a2b85dde253b9 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 14 Nov 2020 12:46:59 +0100 Subject: [PATCH] Aadded missing DescriptorAllocator dispose --- src/ComputeSharp.Graphics/DescriptorAllocator2.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ComputeSharp.Graphics/DescriptorAllocator2.cs b/src/ComputeSharp.Graphics/DescriptorAllocator2.cs index 395616f1..cb33f8e4 100644 --- a/src/ComputeSharp.Graphics/DescriptorAllocator2.cs +++ b/src/ComputeSharp.Graphics/DescriptorAllocator2.cs @@ -99,5 +99,11 @@ namespace ComputeSharp.Graphics this.remainingHandles--; } } + + /// + public void Dispose() + { + D3D12DescriptorHeap->Release(); + } } }