diff options
author | Rob Clark <robdclark@gmail.com> | 2017-01-30 13:10:36 -0500 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2017-03-13 16:23:06 +0000 |
commit | d4bf220581782f74dd75b281ddc4d2d7955cd75c (patch) | |
tree | 98001760e0b35bf52c5fc27854f17cc7bb3e7bf6 /retrace/d3dretrace.hpp | |
parent | b4daabd6aa0f377213b70b2558181aef9900637a (diff) |
retrace: support for dumping multiple snapshots (v3)
Usually if an app is using MRT, we want to dump (and diff) *all* the
render targets to track down where things are going wrong. Also dumps
depth and stencil buffers.
When the --mrt (or -m) argument is specified, all render targets plus
depth and/or stencil are dumped, with the suffix -mrtN/-z/-s. Otherwise
the behavior is as before, only mrt0 is dumped with no suffix.
Only implemented for GLDumper, since I don't know anything about D3D.
Diffstat (limited to 'retrace/d3dretrace.hpp')
-rw-r--r-- | retrace/d3dretrace.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/retrace/d3dretrace.hpp b/retrace/d3dretrace.hpp index d0be5773..d5fc848f 100644 --- a/retrace/d3dretrace.hpp +++ b/retrace/d3dretrace.hpp @@ -50,9 +50,14 @@ public: pLastDevice(NULL) {} + int + getSnapshotCount(void) override { + return 1; + } + image::Image * - getSnapshot(void) { - if (!pLastDevice) { + getSnapshot(int n) { + if ((n != 0) || !pLastDevice) { return NULL; } return d3dstate::getRenderTargetImage(pLastDevice); |