Include min/max depth in string format of D3D11_VIEWPORT

This commit is contained in:
baldurk
2016-07-10 18:09:36 +02:00
parent 34755927b9
commit 983e8f57c0
+2 -2
View File
@@ -998,8 +998,8 @@ void Serialiser::Serialise(const char *name, D3D11_SUBRESOURCE_DATA &el)
string ToStrHelper<false, D3D11_VIEWPORT>::Get(const D3D11_VIEWPORT &el)
{
char tostrBuf[256] = {0};
StringFormat::snprintf(tostrBuf, 255, "Viewport<%.0fx%.0f+%.0f+%.0f>", el.Width, el.Height,
el.TopLeftX, el.TopLeftY);
StringFormat::snprintf(tostrBuf, 255, "Viewport<%.0fx%.0f+%.0f+%.0f z=%f->%f>", el.Width,
el.Height, el.TopLeftX, el.TopLeftY, el.MinDepth, el.MaxDepth);
return tostrBuf;
}