Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/gpgmm/d3d12/ResidencyManagerD3D12.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ namespace gpgmm {

namespace gpgmm::d3d12 {

class BudgetUpdateTask;
class Fence;
class Heap;
class ResidencyList;
Expand Down Expand Up @@ -214,12 +215,6 @@ namespace gpgmm::d3d12 {
HRESULT QueryVideoMemoryInfo(const DXGI_MEMORY_SEGMENT_GROUP& memorySegmentGroup,
DXGI_QUERY_VIDEO_MEMORY_INFO* pVideoMemoryInfoOut);

/** \brief Update and retrieve the current budget and memory usage.

@param memorySegmentGroup Memory segment to update info.
*/
HRESULT UpdateMemorySegment(const DXGI_MEMORY_SEGMENT_GROUP& memorySegmentGroup);

/** \brief Return the current residency manager usage.

\return A RESIDENCY_INFO struct.
Expand All @@ -245,6 +240,9 @@ namespace gpgmm::d3d12 {

DXGI_MEMORY_SEGMENT_GROUP GetMemorySegmentGroup(D3D12_HEAP_TYPE heapType) const;

friend BudgetUpdateTask;
HRESULT UpdateMemorySegment(const DXGI_MEMORY_SEGMENT_GROUP& memorySegmentGroup);

const char* GetTypename() const;

using LRUCache = LinkedList<Heap>;
Expand Down