#include <stdio.h>
-#include "trace_writer.hpp"
-#include "d3d9imports.hpp"
#include "d3dshader.hpp"
+#include "d3d9imports.hpp"
typedef HRESULT
);
-void DumpShader(const DWORD *tokens)
+void DumpShader(trace::Writer &writer, const DWORD *tokens)
{
static BOOL firsttime = TRUE;
static HMODULE hD3DXModule = NULL;
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) {
}
}
- Trace::LiteralOpaque(tokens);
+ writer.writeOpaque(tokens);
}