mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 10:24:12 +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,
|
IUnknown* const* ppResources,
|
||||||
DXGI_RESIDENCY* pResidencyStatus,
|
DXGI_RESIDENCY* pResidencyStatus,
|
||||||
UINT NumResources) {
|
UINT NumResources) {
|
||||||
Logger::err("DxgiDevice::QueryResourceResidency: Not implemented");
|
static bool s_errorShown = false;
|
||||||
return E_NOTIMPL;
|
|
||||||
|
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