X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fd3d11_1.py;h=d163d8f074e00b288d2bcaa5c72275648b521930;hb=HEAD;hp=c603d0815a6766975ea81893a53985d9cd7c1520;hpb=43aa19fc1cf6979328dd6a1f6bcf33f74792faec;p=apitrace diff --git a/specs/d3d11_1.py b/specs/d3d11_1.py index c603d08..d163d8f 100644 --- a/specs/d3d11_1.py +++ b/specs/d3d11_1.py @@ -30,6 +30,8 @@ from winapi import * from d3d11sdklayers import * from d3d11 import * +import dxgi1_2 + D3D_FEATURE_LEVEL.values += [ "D3D_FEATURE_LEVEL_11_1", ] @@ -104,7 +106,7 @@ D3D11_BLEND_DESC1 = Struct("D3D11_BLEND_DESC1", [ ]) ID3D11BlendState1.methods += [ - StdMethod(Void, "GetDesc1", [Out(Pointer(D3D11_BLEND_DESC1), "pDesc")]), + StdMethod(Void, "GetDesc1", [Out(Pointer(D3D11_BLEND_DESC1), "pDesc")], sideeffects=False), ] D3D11_RASTERIZER_DESC1 = Struct("D3D11_RASTERIZER_DESC1", [ @@ -122,7 +124,7 @@ D3D11_RASTERIZER_DESC1 = Struct("D3D11_RASTERIZER_DESC1", [ ]) ID3D11RasterizerState1.methods += [ - StdMethod(Void, "GetDesc1", [Out(Pointer(D3D11_RASTERIZER_DESC1), "pDesc")]), + StdMethod(Void, "GetDesc1", [Out(Pointer(D3D11_RASTERIZER_DESC1), "pDesc")], sideeffects=False), ] D3D11_1_CREATE_DEVICE_CONTEXT_STATE_FLAG = Flags(UINT, [ @@ -131,9 +133,10 @@ D3D11_1_CREATE_DEVICE_CONTEXT_STATE_FLAG = Flags(UINT, [ ID3D11DeviceContext1.methods += [ StdMethod(Void, "CopySubresourceRegion1", [(ObjPointer(ID3D11Resource), "pDstResource"), (UINT, "DstSubresource"), (UINT, "DstX"), (UINT, "DstY"), (UINT, "DstZ"), (ObjPointer(ID3D11Resource), "pSrcResource"), (UINT, "SrcSubresource"), (Pointer(Const(D3D11_BOX)), "pSrcBox"), (D3D11_COPY_FLAGS, "CopyFlags")]), - StdMethod(Void, "UpdateSubresource1", [(ObjPointer(ID3D11Resource), "pDstResource"), (UINT, "DstSubresource"), (Pointer(Const(D3D11_BOX)), "pDstBox"), (OpaquePointer(Const(Void)), "pSrcData"), (UINT, "SrcRowPitch"), (UINT, "SrcDepthPitch"), (D3D11_COPY_FLAGS, "CopyFlags")]), + StdMethod(Void, "UpdateSubresource1", [(ObjPointer(ID3D11Resource), "pDstResource"), (UINT, "DstSubresource"), (Pointer(Const(D3D11_BOX)), "pDstBox"), (Blob(Const(Void), "_calcSubresourceSize(pDstResource, DstSubresource, pDstBox, SrcRowPitch, SrcDepthPitch)"), "pSrcData"), (UINT, "SrcRowPitch"), (UINT, "SrcDepthPitch"), (D3D11_COPY_FLAGS, "CopyFlags")]), StdMethod(Void, "DiscardResource", [(ObjPointer(ID3D11Resource), "pResource")]), StdMethod(Void, "DiscardView", [(ObjPointer(ID3D11View), "pResourceView")]), + StdMethod(Void, "DiscardView1", [(ObjPointer(ID3D11View), "pResourceView"), (Array(Const(D3D11_RECT), "NumRects"), "pRect"), (UINT, "NumRects")]), StdMethod(Void, "VSSetConstantBuffers1", [(UINT, "StartSlot"), (UINT, "NumBuffers"), (Array(Const(ObjPointer(ID3D11Buffer)), "NumBuffers"), "ppConstantBuffers"), (Array(Const(UINT), "NumBuffers"), "pFirstConstant"), (Array(Const(UINT), "NumBuffers"), "pNumConstants")]), StdMethod(Void, "HSSetConstantBuffers1", [(UINT, "StartSlot"), (UINT, "NumBuffers"), (Array(Const(ObjPointer(ID3D11Buffer)), "NumBuffers"), "ppConstantBuffers"), (Array(Const(UINT), "NumBuffers"), "pFirstConstant"), (Array(Const(UINT), "NumBuffers"), "pNumConstants")]), StdMethod(Void, "DSSetConstantBuffers1", [(UINT, "StartSlot"), (UINT, "NumBuffers"), (Array(Const(ObjPointer(ID3D11Buffer)), "NumBuffers"), "ppConstantBuffers"), (Array(Const(UINT), "NumBuffers"), "pFirstConstant"), (Array(Const(UINT), "NumBuffers"), "pNumConstants")]), @@ -151,12 +154,6 @@ ID3D11DeviceContext1.methods += [ ] -DXGI_SHARED_RESOURCE_FLAG = Flags(DWORD, [ - "DXGI_SHARED_RESOURCE_READ", - "DXGI_SHARED_RESOURCE_WRITE", -]) - - ID3D11Device1.methods += [ StdMethod(Void, "GetImmediateContext1", [Out(Pointer(ObjPointer(ID3D11DeviceContext1)), "ppImmediateContext")]), StdMethod(HRESULT, "CreateDeferredContext1", [(UINT, "ContextFlags"), Out(Pointer(ObjPointer(ID3D11DeviceContext1)), "ppDeferredContext")]), @@ -168,10 +165,10 @@ ID3D11Device1.methods += [ ] ID3DUserDefinedAnnotation.methods += [ - StdMethod(INT, "BeginEvent", [(LPCWSTR, "Name")]), - StdMethod(INT, "EndEvent", []), - StdMethod(Void, "SetMarker", [(LPCWSTR, "Name")]), - StdMethod(BOOL, "GetStatus", []), + StdMethod(INT, "BeginEvent", [(LPCWSTR, "Name")], sideeffects=False), + StdMethod(INT, "EndEvent", [], sideeffects=False), + StdMethod(Void, "SetMarker", [(LPCWSTR, "Name")], sideeffects=False), + StdMethod(BOOL, "GetStatus", [], sideeffects=False), ] d3d11.addInterfaces([