X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fd3d9state.cpp;h=a90ee6da037de7e12f3dcbb104bb3659acf88e61;hb=HEAD;hp=3865cb3963d9fe467ab958654a5a2a74f70354c1;hpb=3b18682ec801546fc7b2a1b9593161fa99c5adcd;p=apitrace diff --git a/retrace/d3d9state.cpp b/retrace/d3d9state.cpp index 3865cb3..a90ee6d 100644 --- a/retrace/d3d9state.cpp +++ b/retrace/d3d9state.cpp @@ -30,6 +30,7 @@ #include "d3d9imports.hpp" #include "d3dshader.hpp" +#include "d3dstate.hpp" #include "json.hpp" @@ -67,6 +68,8 @@ dumpShader(JSONWriter &json, const char *name, T *pShader) { free(pData); } } + + pShader->Release(); } static void @@ -98,9 +101,20 @@ dumpDevice(std::ostream &os, IDirect3DDevice9 *pDevice) { JSONWriter json(os); + /* TODO */ + json.beginMember("parameters"); + json.beginObject(); + json.endObject(); + json.endMember(); // parameters + dumpShaders(json, pDevice); - /* TODO */ + json.beginMember("textures"); + json.beginObject(); + json.endObject(); + json.endMember(); // textures + + dumpFramebuffer(json, pDevice); }