From: José Fonseca Date: Thu, 25 Jun 2009 12:57:57 +0000 (+0100) Subject: Wrap Pix D3DPERF_* functions. X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=a7bcb22b55b3b976fbfc2a2f25f3ad83f00f4e02;p=apitrace Wrap Pix D3DPERF_* functions. --- 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__':