From c5ec61b504a768d3071ec3bbacd418d70055f143 Mon Sep 17 00:00:00 2001 From: Bryan Bernhart Date: Thu, 14 Apr 2022 16:50:50 -0700 Subject: [PATCH] Remove ResourceAllocator::GetResidencyManager. --- src/gpgmm/d3d12/ResourceAllocatorD3D12.cpp | 4 ---- src/gpgmm/d3d12/ResourceAllocatorD3D12.h | 5 ----- 2 files changed, 9 deletions(-) diff --git a/src/gpgmm/d3d12/ResourceAllocatorD3D12.cpp b/src/gpgmm/d3d12/ResourceAllocatorD3D12.cpp index 696558d5f..73f366549 100644 --- a/src/gpgmm/d3d12/ResourceAllocatorD3D12.cpp +++ b/src/gpgmm/d3d12/ResourceAllocatorD3D12.cpp @@ -943,10 +943,6 @@ namespace gpgmm { namespace d3d12 { return S_OK; } - ResidencyManager* ResourceAllocator::GetResidencyManager() const { - return mResidencyManager.Get(); - } - RESOURCE_ALLOCATOR_INFO ResourceAllocator::GetInfo() const { // ResourceAllocator itself could call CreateCommittedResource directly. RESOURCE_ALLOCATOR_INFO result = mInfo; diff --git a/src/gpgmm/d3d12/ResourceAllocatorD3D12.h b/src/gpgmm/d3d12/ResourceAllocatorD3D12.h index cdd9611d1..6edb082c6 100644 --- a/src/gpgmm/d3d12/ResourceAllocatorD3D12.h +++ b/src/gpgmm/d3d12/ResourceAllocatorD3D12.h @@ -282,11 +282,6 @@ namespace gpgmm { namespace d3d12 { HRESULT CreateResource(ComPtr committedResource, ResourceAllocation** resourceAllocationOut); - // Return the residency manager. The lifetime of the residency manager is fully owned by the - // allocator. CreateResource enables the returned resource allocation to be residency - // managed when non-null. - ResidencyManager* GetResidencyManager() const; - // When pooling is enabled, the allocator will retain resource heaps in order to speed-up // subsequent resource allocation requests. These resource allocations count against the // app's memory usage and in general, will lead to increased memory usage by the overall