]> git.cworth.org Git - apitrace/commitdiff
Wrap Pix D3DPERF_* functions.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 25 Jun 2009 12:57:57 +0000 (13:57 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 25 Jun 2009 12:57:57 +0000 (13:57 +0100)
d3d9.def
d3d9.py

index 7ddfe208c66cee0f1653f773c8296488bc6104cb..dbbb029912b73f0ab1d86a78eebaaab6bb38231f 100644 (file)
--- a/d3d9.def
+++ b/d3d9.def
@@ -1,5 +1,12 @@
 LIBRARY        "d3d9"
 
 EXPORTS
-        Direct3DCreate9 @1
-        Direct3DCreate9Ex @2
+        Direct3DCreate9
+        Direct3DCreate9Ex
+        D3DPERF_BeginEvent
+        D3DPERF_EndEvent
+        D3DPERF_SetMarker
+        D3DPERF_SetRegion
+        D3DPERF_QueryRepeatFrame
+        D3DPERF_SetOptions
+        D3DPERF_GetStatus
diff --git a/d3d9.py b/d3d9.py
index 2473a0928a929f97a8ffc596cd82370bbb2b5f5b..d398d58f4e9668b65a410e0aedc0fb0bf54bc58a 100644 (file)
--- a/d3d9.py
+++ b/d3d9.py
@@ -385,6 +385,13 @@ d3d9 = Dll("d3d9")
 d3d9.functions += [
     DllFunction(PDIRECT3D9, "Direct3DCreate9", [(UINT, "SDKVersion")], fail='NULL'),
     DllFunction(HRESULT, "Direct3DCreate9Ex", [(UINT, "SDKVersion"), (OutPointer(PDIRECT3D9EX), "ppD3D")], fail='D3DERR_NOTAVAILABLE'),
+    DllFunction(Int, "D3DPERF_BeginEvent", [(D3DCOLOR, "col"), (LPCWSTR, "wszName")], fail='-1'),
+    DllFunction(Int, "D3DPERF_EndEvent", [], fail='-1'),
+    DllFunction(Void, "D3DPERF_SetMarker", [(D3DCOLOR, "col"), (LPCWSTR, "wszName")], fail=''),
+    DllFunction(Void, "D3DPERF_SetRegion", [(D3DCOLOR, "col"), (LPCWSTR, "wszName")], fail=''),
+    DllFunction(BOOL, "D3DPERF_QueryRepeatFrame", [], fail='FALSE'),
+    DllFunction(Void, "D3DPERF_SetOptions", [(DWORD, "dwOptions")], fail=''),
+    DllFunction(DWORD, "D3DPERF_GetStatus", [], fail='0'),
 ]
 
 if __name__ == '__main__':