X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=d3dshader.cpp;h=d3101d0103de7c81592e50a3a46782cdd28e7820;hb=c592957de1083b4e32ee58c0ea2e5feaa9085b47;hp=97f5d424299c042b7cf43aaf6ba63ef0cddf5342;hpb=9ed672278e79600c4c7ad34a715ecfc4beda9255;p=apitrace diff --git a/d3dshader.cpp b/d3dshader.cpp index 97f5d42..d3101d0 100644 --- a/d3dshader.cpp +++ b/d3dshader.cpp @@ -27,9 +27,8 @@ #include -#include "trace_writer.hpp" -#include "d3d9imports.hpp" #include "d3dshader.hpp" +#include "d3d9imports.hpp" typedef HRESULT @@ -41,7 +40,7 @@ typedef HRESULT ); -void DumpShader(const DWORD *tokens) +void DumpShader(Trace::Writer &writer, const DWORD *tokens) { static BOOL firsttime = TRUE; static HMODULE hD3DXModule = NULL; @@ -81,7 +80,7 @@ found: hr = pfnD3DXDisassembleShader( (DWORD *)tokens, FALSE, NULL, &pDisassembly); if (hr == D3D_OK) { - Trace::LiteralString((const char *)pDisassembly->GetBufferPointer()); + writer.writeString((const char *)pDisassembly->GetBufferPointer()); } if (pDisassembly) { @@ -93,5 +92,5 @@ found: } } - Trace::LiteralOpaque(tokens); + writer.writeOpaque(tokens); }