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

[d3d11] Fix log spam in SetEvictionPriority stubs

This commit is contained in:
Philip Rebohle 2019-01-12 15:22:34 +01:00
parent bee21e7539
commit c804d99db7
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 16 additions and 8 deletions

View File

@ -142,13 +142,15 @@ namespace dxvk {
UINT STDMETHODCALLTYPE D3D11Buffer::GetEvictionPriority() {
Logger::warn("D3D11Buffer::GetEvictionPriority: Stub");
return DXGI_RESOURCE_PRIORITY_NORMAL;
}
void STDMETHODCALLTYPE D3D11Buffer::SetEvictionPriority(UINT EvictionPriority) {
Logger::warn("D3D11Buffer::SetEvictionPriority: Stub");
static bool s_errorShown = false;
if (!std::exchange(s_errorShown, true))
Logger::warn("D3D11Buffer::SetEvictionPriority: Stub");
}

View File

@ -598,13 +598,15 @@ namespace dxvk {
UINT STDMETHODCALLTYPE D3D11Texture1D::GetEvictionPriority() {
Logger::warn("D3D11Texture1D::GetEvictionPriority: Stub");
return DXGI_RESOURCE_PRIORITY_NORMAL;
}
void STDMETHODCALLTYPE D3D11Texture1D::SetEvictionPriority(UINT EvictionPriority) {
Logger::warn("D3D11Texture1D::SetEvictionPriority: Stub");
static bool s_errorShown = false;
if (!std::exchange(s_errorShown, true))
Logger::warn("D3D11Texture1D::SetEvictionPriority: Stub");
}
@ -677,13 +679,15 @@ namespace dxvk {
UINT STDMETHODCALLTYPE D3D11Texture2D::GetEvictionPriority() {
Logger::warn("D3D11Texture2D::GetEvictionPriority: Stub");
return DXGI_RESOURCE_PRIORITY_NORMAL;
}
void STDMETHODCALLTYPE D3D11Texture2D::SetEvictionPriority(UINT EvictionPriority) {
Logger::warn("D3D11Texture2D::SetEvictionPriority: Stub");
static bool s_errorShown = false;
if (!std::exchange(s_errorShown, true))
Logger::warn("D3D11Texture2D::SetEvictionPriority: Stub");
}
@ -758,13 +762,15 @@ namespace dxvk {
UINT STDMETHODCALLTYPE D3D11Texture3D::GetEvictionPriority() {
Logger::warn("D3D11Texture3D::GetEvictionPriority: Stub");
return DXGI_RESOURCE_PRIORITY_NORMAL;
}
void STDMETHODCALLTYPE D3D11Texture3D::SetEvictionPriority(UINT EvictionPriority) {
Logger::warn("D3D11Texture3D::SetEvictionPriority: Stub");
static bool s_errorShown = false;
if (!std::exchange(s_errorShown, true))
Logger::warn("D3D11Texture3D::SetEvictionPriority: Stub");
}