From 912bdca29ca8f7363629de3391b6558cb422d236 Mon Sep 17 00:00:00 2001 From: Bryan Bernhart Date: Fri, 8 Jul 2022 10:56:55 -0700 Subject: [PATCH] Depreciate ResourceAllocation::UpdateResidency. Removes the convience function UpdateResidency, since apps could easy implement it themselves. --- src/gpgmm/d3d12/ResourceAllocationD3D12.cpp | 4 ---- src/gpgmm/d3d12/ResourceAllocationD3D12.h | 3 --- 2 files changed, 7 deletions(-) diff --git a/src/gpgmm/d3d12/ResourceAllocationD3D12.cpp b/src/gpgmm/d3d12/ResourceAllocationD3D12.cpp index f0471e8c6..7cb113713 100644 --- a/src/gpgmm/d3d12/ResourceAllocationD3D12.cpp +++ b/src/gpgmm/d3d12/ResourceAllocationD3D12.cpp @@ -148,10 +148,6 @@ namespace gpgmm::d3d12 { mResource->Unmap(subresource, newWrittenRangePtr); } - HRESULT ResourceAllocation::UpdateResidency(ResidencySet* residencySet) const { - return residencySet->Insert(GetMemory()); - } - bool ResourceAllocation::IsResident() const { const Heap* resourceHeap = GetMemory(); ASSERT(resourceHeap != nullptr); diff --git a/src/gpgmm/d3d12/ResourceAllocationD3D12.h b/src/gpgmm/d3d12/ResourceAllocationD3D12.h index c9f057745..70d1efa71 100644 --- a/src/gpgmm/d3d12/ResourceAllocationD3D12.h +++ b/src/gpgmm/d3d12/ResourceAllocationD3D12.h @@ -153,9 +153,6 @@ namespace gpgmm::d3d12 { */ ID3D12Resource* GetResource() const; - // Tracks the resource allocation memory for residency. - HRESULT UpdateResidency(ResidencySet* residencySet) const; - /** \brief Check if the resource allocation was made resident or not. \return True if resident, else, false.