summaryrefslogtreecommitdiff
path: root/specs/d3d11.py
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-08-13 13:18:48 +0100
committerJosé Fonseca <jfonseca@vmware.com>2014-08-13 13:23:36 +0100
commit00b9aba4917a736629ead7858a5db8083dd896c4 (patch)
treeb6fb6a47d4ada5db7f467aa481ffbaa3e14c3662 /specs/d3d11.py
parent64fe50e9875f7cb6c0c1073c970699ecfe7fab46 (diff)
d3dretrace: Tweak RSGetViewports/RSGetScissorRects spec.
- pNum* arguments are InOut - Ensure sideeffects is set to false (preventing crash due to the inability to handle InOut params correctly. Spotted by Zack.
Diffstat (limited to 'specs/d3d11.py')
-rw-r--r--specs/d3d11.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/specs/d3d11.py b/specs/d3d11.py
index a9630ba9..e1c4cf23 100644
--- a/specs/d3d11.py
+++ b/specs/d3d11.py
@@ -1140,8 +1140,8 @@ ID3D11DeviceContext.methods += [
StdMethod(Void, "OMGetDepthStencilState", [Out(Pointer(ObjPointer(ID3D11DepthStencilState)), "ppDepthStencilState"), Out(Pointer(UINT), "pStencilRef")]),
StdMethod(Void, "SOGetTargets", [(UINT, "NumBuffers"), Out(Array(ObjPointer(ID3D11Buffer), "NumBuffers"), "ppSOTargets")]),
StdMethod(Void, "RSGetState", [Out(Pointer(ObjPointer(ID3D11RasterizerState)), "ppRasterizerState")]),
- StdMethod(Void, "RSGetViewports", [Out(Pointer(UINT), "pNumViewports"), Out(Array(D3D11_VIEWPORT, "*pNumViewports"), "pViewports")]),
- StdMethod(Void, "RSGetScissorRects", [Out(Pointer(UINT), "pNumRects"), Out(Array(D3D11_RECT, "*pNumRects"), "pRects")]),
+ StdMethod(Void, "RSGetViewports", [InOut(Pointer(UINT), "pNumViewports"), Out(Array(D3D11_VIEWPORT, "*pNumViewports"), "pViewports")], sideeffects=False),
+ StdMethod(Void, "RSGetScissorRects", [InOut(Pointer(UINT), "pNumRects"), Out(Array(D3D11_RECT, "*pNumRects"), "pRects")], sideeffects=False),
StdMethod(Void, "HSGetShaderResources", [(UINT, "StartSlot"), (UINT, "NumViews"), Out(Array(ObjPointer(ID3D11ShaderResourceView), "NumViews"), "ppShaderResourceViews")]),
StdMethod(Void, "HSGetShader", [Out(Pointer(ObjPointer(ID3D11HullShader)), "ppHullShader"), Out(Array(ObjPointer(ID3D11ClassInstance), "*pNumClassInstances"), "ppClassInstances"), Out(Pointer(UINT), "pNumClassInstances")]),
StdMethod(Void, "HSGetSamplers", [(UINT, "StartSlot"), (UINT, "NumSamplers"), Out(Array(ObjPointer(ID3D11SamplerState), "NumSamplers"), "ppSamplers")]),