summaryrefslogtreecommitdiff
path: root/d3d8.py
diff options
context:
space:
mode:
authorJosé Fonseca <jose.r.fonseca@gmail.com>2011-09-21 08:12:39 +0100
committerJosé Fonseca <jose.r.fonseca@gmail.com>2011-09-21 08:12:39 +0100
commit4106eb4ff92852a4eed5ac66d9cbedb14a7bfb8d (patch)
tree4fa8b25f48d5e0aac2a5acb512cc87b5ec48fdc7 /d3d8.py
parenta8c164caecc408462d3e4c1626c87ab9974f6a48 (diff)
Split D3D specs for trace generators.
Diffstat (limited to 'd3d8.py')
-rw-r--r--d3d8.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/d3d8.py b/d3d8.py
index f579a9b..0713696 100644
--- a/d3d8.py
+++ b/d3d8.py
@@ -28,7 +28,6 @@
from winapi import *
from d3d8types import *
from d3d8caps import *
-from trace import DllTracer
HRESULT = Enum("HRESULT", [
"D3D_OK",
@@ -281,27 +280,3 @@ d3d8 = API("d3d8")
d3d8.add_functions([
StdFunction(PDIRECT3D8, "Direct3DCreate8", [(UINT, "SDKVersion")]),
])
-
-
-class D3D8Tracer(DllTracer):
-
- def dump_arg_instance(self, function, arg):
- # Dump shaders as strings
- if function.name in ('CreateVertexShader', 'CreatePixelShader') and arg.name == 'pFunction':
- print ' DumpShader(Trace::localWriter, %s);' % (arg.name)
- return
-
- DllTracer.dump_arg_instance(self, function, arg)
-
-
-if __name__ == '__main__':
- print '#include <windows.h>'
- print '#include <d3d8.h>'
- print '#include "d3dshader.hpp"'
- print
- print '#include "trace_writer.hpp"'
- print '#include "os.hpp"'
- print
- tracer = D3D8Tracer('d3d8.dll')
- tracer.trace_api(d3d8)
-