https://learn.microsoft.com/en-us/windows/win32/api/dxgi/nf-dxgi-idxgidevice-queryresourceresidency
IDXGIDevice::QueryResourceResidency (dxgi.h) - Win32 apps | Microsoft Learn
Gets the residency status of an array of resources.
dxgihappsmicrosoftlearn