[d3d11] Reduce log spam about UAV rendering

This commit is contained in:
Philip Rebohle 2018-06-10 04:19:30 +02:00
parent 1e7a05c796
commit 05f24c3c38
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 4 additions and 1 deletions

View File

@ -2095,7 +2095,10 @@ namespace dxvk {
OMSetRenderTargets(NumRTVs, ppRenderTargetViews, pDepthStencilView);
if (NumUAVs != D3D11_KEEP_UNORDERED_ACCESS_VIEWS) {
Logger::warn("D3D11: UAV rendering not properly implemented yet");
static std::atomic<bool> s_warningShown = { false };
if (NumUAVs != 0 && !s_warningShown.exchange(true))
Logger::warn("D3D11: UAV rendering not properly implemented yet");
// UAVs are made available to all shader stages in
// the graphics pipeline even though this code may