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:
parent
63d7770870
commit
b73b91a5c9
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user