]> git.cworth.org Git - apitrace/blobdiff - wrappers/d3d11trace.py
d2d: Make it actually work.
[apitrace] / wrappers / d3d11trace.py
index c504f5e35326fab498f8ed0c86c7a1e14305af7d..6e2627717dca96b84ffb32b5fad394d95a333f61 100644 (file)
@@ -27,6 +27,7 @@
 import sys
 
 from d3dcommontrace import D3DCommonTracer
+from specs.stdapi import API
 from specs.d3d11 import d3d11
 
 
@@ -47,5 +48,8 @@ if __name__ == '__main__':
     print '#include "d3dcommonshader.hpp"'
     print '#include "d3d11size.hpp"'
     print
-    tracer = D3DCommonTracer('d3d11.dll')
-    tracer.traceApi(d3d11)
+
+    api = API()
+    api.addModule(d3d11)
+    tracer = D3DCommonTracer()
+    tracer.traceApi(api)