1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 04:24:11 +01:00

[dxgi] Implement slightly better QueryResourceResidency stub

This now returns redidency values for all queried resources, but
not the correct ons. May fix issues in Fallout 4?
This commit is contained in:
Philip Rebohle 2018-09-27 07:31:30 +02:00
parent 63d7770870
commit b73b91a5c9
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -97,8 +97,18 @@ namespace dxvk {
IUnknown* const* ppResources,
DXGI_RESIDENCY* pResidencyStatus,
UINT NumResources) {
Logger::err("DxgiDevice::QueryResourceResidency: Not implemented");
return E_NOTIMPL;
static bool s_errorShown = false;
if (!std::exchange(s_errorShown, true))
Logger::err("DxgiDevice::QueryResourceResidency: Stub");
if (!ppResources || !pResidencyStatus)
return E_INVALIDARG;
for (uint32_t i = 0; i < NumResources; i++)
pResidencyStatus[i] = DXGI_RESIDENCY_FULLY_RESIDENT;
return S_OK;
}