summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2013-05-23 21:07:01 +0200
committerdegasus <wickmarkus@web.de>2013-05-23 21:07:01 +0200
commita51d6a6dddc99b91a19025988a3e91bb2bc02acb (patch)
treeca41ef200d8f66cd8be8715ea827d166a1cbcb53 /Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp
parent6a5e7d7be40cc8f06aa2e4d382204bc169488234 (diff)
add new statistics for gpu buffer streaming
Diffstat (limited to 'Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp b/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp
index bc5004d0c2..a2bdd360c2 100644
--- a/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp
+++ b/Source/Plugins/Plugin_VideoDX11/Src/PixelShaderCache.cpp
@@ -345,6 +345,8 @@ ID3D11Buffer* &PixelShaderCache::GetConstantBuffer()
memcpy(map.pData, psconstants, sizeof(psconstants));
D3D::context->Unmap(pscbuf, 0);
pscbufchanged = false;
+
+ ADDSTAT(stats.thisFrame.bytesUniformStreamed, sizeof(psconstants));
}
return pscbuf;
}