]> git.cworth.org Git - apitrace/blobdiff - wrappers/d3d11trace.py
d2d1,dwrite: Trace both APIs together.
[apitrace] / wrappers / d3d11trace.py
index ceafdcc10580683679c009d8fe7a84741049292d..6e2627717dca96b84ffb32b5fad394d95a333f61 100644 (file)
@@ -26,7 +26,8 @@
 
 import sys
 
-from dlltrace import DllTracer
+from d3dcommontrace import D3DCommonTracer
+from specs.stdapi import API
 from specs.d3d11 import d3d11
 
 
@@ -36,17 +37,19 @@ if __name__ == '__main__':
     print '#include "trace_writer_local.hpp"'
     print '#include "os.hpp"'
     print
-    print '#include <windows.h>'
+    print '#include "d3d11imports.hpp"'
     print
-    print '#include "compat.h"'
-    print
-    print '#include <d3d11.h>'
 
     if int(sys.argv[1]):
         import specs.d3d11_1
         print '#include <d3d11_1.h>'
+        print
 
-    print '#include <d3dx11.h>'
+    print '#include "d3dcommonshader.hpp"'
+    print '#include "d3d11size.hpp"'
     print
-    tracer = DllTracer('d3d11.dll')
-    tracer.traceApi(d3d11)
+
+    api = API()
+    api.addModule(d3d11)
+    tracer = D3DCommonTracer()
+    tracer.traceApi(api)