mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d11] Fix log spam when an application uses DiscardView
We don't support this method, but we should only issue the warning once to prevent poor performance.
This commit is contained in:
parent
4d1a70bd89
commit
c8c6f24b63
1 changed files with 12 additions and 3 deletions
|
@ -62,18 +62,27 @@ namespace dxvk {
|
|||
}
|
||||
|
||||
void STDMETHODCALLTYPE D3D11DeviceContext::DiscardResource(ID3D11Resource * pResource) {
|
||||
Logger::err("D3D11DeviceContext::DiscardResource: Not implemented");
|
||||
static bool s_errorShown = false;
|
||||
|
||||
if (!std::exchange(s_errorShown, true))
|
||||
Logger::err("D3D11DeviceContext::DiscardResource: Not implemented");
|
||||
}
|
||||
|
||||
void STDMETHODCALLTYPE D3D11DeviceContext::DiscardView(ID3D11View * pResourceView) {
|
||||
Logger::err("D3D11DeviceContext::DiscardView: Not implemented");
|
||||
static bool s_errorShown = false;
|
||||
|
||||
if (!std::exchange(s_errorShown, true))
|
||||
Logger::err("D3D11DeviceContext::DiscardView: Not implemented");
|
||||
}
|
||||
|
||||
void STDMETHODCALLTYPE D3D11DeviceContext::DiscardView1(
|
||||
ID3D11View* pResourceView,
|
||||
const D3D11_RECT* pRects,
|
||||
UINT NumRects) {
|
||||
Logger::err("D3D11DeviceContext::DiscardView1: Not implemented");
|
||||
static bool s_errorShown = false;
|
||||
|
||||
if (!std::exchange(s_errorShown, true))
|
||||
Logger::err("D3D11DeviceContext::DiscardView1: Not implemented");
|
||||
}
|
||||
|
||||
void STDMETHODCALLTYPE D3D11DeviceContext::SwapDeviceContextState(
|
||||
|
|
Loading…
Add table
Reference in a new issue