+class D3D9Dumper : public retrace::Dumper {
+public:
+ IDirect3DDevice9 *pLastDirect3DDevice9;
+
+ D3D9Dumper() :
+ pLastDirect3DDevice9(NULL)
+ {}
+
+ image::Image *
+ getSnapshot(void) {
+ if (!pLastDirect3DDevice9) {
+ return NULL;
+ }
+ return d3dstate::getRenderTargetImage(pLastDirect3DDevice9);