From a7bcb22b55b3b976fbfc2a2f25f3ad83f00f4e02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 25 Jun 2009 13:57:57 +0100 Subject: [PATCH] Wrap Pix D3DPERF_* functions. --- d3d9.def | 11 +++++++++-- d3d9.py | 7 +++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/d3d9.def b/d3d9.def index 7ddfe20..dbbb029 100644 --- 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 2473a09..d398d58 100644 --- 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__': -- 2.45.2