summaryrefslogtreecommitdiff
path: root/specs/d3d.py
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2015-01-15 12:55:04 +0000
committerJosé Fonseca <jfonseca@vmware.com>2015-01-15 12:55:04 +0000
commit7300ed717300d2797edd4ba8abf3f1d4d14a9b02 (patch)
tree612937cf779fb45253dc985c2c0c1e8f3e837d94 /specs/d3d.py
parent308c00e9421e191cd3c568ec0c63cd0c9bd5aeab (diff)
ddrawtrace: Capture IDirect3DDevice7::DrawPrimitive vertices.
Diffstat (limited to 'specs/d3d.py')
-rw-r--r--specs/d3d.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/specs/d3d.py b/specs/d3d.py
index 61c8d048..d05e477b 100644
--- a/specs/d3d.py
+++ b/specs/d3d.py
@@ -335,8 +335,8 @@ IDirect3DDevice7.methods += [
StdMethod(HRESULT, "BeginStateBlock", []),
StdMethod(HRESULT, "EndStateBlock", [Out(LPDWORD, "lpdwBlockHandle")]),
StdMethod(HRESULT, "PreLoad", [(LPDIRECTDRAWSURFACE7, "lpddsTexture")]),
- StdMethod(HRESULT, "DrawPrimitive", [(D3DPRIMITIVETYPE, "d3dptPrimitiveType"), (D3DFVF, "d3dvtVertexType"), (LPVOID, "lpvVertices"), (DWORD, "dwVertexCount"), (DWORD, "dwFlags")]),
- StdMethod(HRESULT, "DrawIndexedPrimitive", [(D3DPRIMITIVETYPE, "d3dptPrimitiveType"), (D3DFVF, "d3dvtVertexType"), (LPVOID, "lpvVertices"), (DWORD, "dwVertexCount"), (LPWORD, "dwIndices"), (DWORD, "dwIndexCount"), (DWORD, "dwFlags")]),
+ StdMethod(HRESULT, "DrawPrimitive", [(D3DPRIMITIVETYPE, "d3dptPrimitiveType"), (D3DFVF, "d3dvtVertexType"), (Blob(VOID, "dwVertexCount * _getVertexSize(d3dvtVertexType)"), "lpvVertices"), (DWORD, "dwVertexCount"), (DWORD, "dwFlags")]),
+ StdMethod(HRESULT, "DrawIndexedPrimitive", [(D3DPRIMITIVETYPE, "d3dptPrimitiveType"), (D3DFVF, "d3dvtVertexType"), (Blob(VOID, "dwVertexCount * _getVertexSize(d3dvtVertexType)"), "lpvVertices"), (DWORD, "dwVertexCount"), (LPWORD, "dwIndices"), (DWORD, "dwIndexCount"), (DWORD, "dwFlags")]),
StdMethod(HRESULT, "SetClipStatus", [(LPD3DCLIPSTATUS, "lpD3DClipStatus")]),
StdMethod(HRESULT, "GetClipStatus", [Out(LPD3DCLIPSTATUS, "lpD3DClipStatus")]),
StdMethod(HRESULT, "DrawPrimitiveStrided", [(D3DPRIMITIVETYPE, "d3dptPrimitiveType"), (D3DFVF, "dwVertexType"), (LPD3DDRAWPRIMITIVESTRIDEDDATA, "lpD3DDrawPrimStrideData"), (DWORD, "dwVertexCount"), (DWORD, "dwFlags")]),