X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fd3d10_1.py;h=e80f0d237b971c84eaac74c31fec364684deefa0;hb=43aa19fc1cf6979328dd6a1f6bcf33f74792faec;hp=e426772e1042c1a30ade58e54fae02917ebc8fd1;hpb=24019a16f0e5ee7e4f5f983881c91e001506fc7b;p=apitrace diff --git a/specs/d3d10_1.py b/specs/d3d10_1.py index e426772..e80f0d2 100644 --- a/specs/d3d10_1.py +++ b/specs/d3d10_1.py @@ -26,17 +26,8 @@ """d3d10_1.h""" from winapi import * -from d3d10sdklayers import * from d3d10 import * -ID3D10Blob = Interface("ID3D10Blob", IUnknown) -LPD3D10BLOB = ObjPointer(ID3D10Blob) - -ID3D10Blob.methods += [ - Method(LPVOID, "GetBufferPointer", []), - Method(SIZE_T, "GetBufferSize", []), -] - D3D10_DRIVER_TYPE = Enum("D3D10_DRIVER_TYPE", [ "D3D10_DRIVER_TYPE_HARDWARE", "D3D10_DRIVER_TYPE_REFERENCE", @@ -72,7 +63,7 @@ D3D10_BLEND_DESC1 = Struct("D3D10_BLEND_DESC1", [ ID3D10BlendState1 = Interface("ID3D10BlendState1", ID3D10BlendState) ID3D10BlendState1.methods += [ - Method(Void, "GetDesc1", [Out(Pointer(D3D10_BLEND_DESC1), "pDesc")]), + StdMethod(Void, "GetDesc1", [Out(Pointer(D3D10_BLEND_DESC1), "pDesc")]), ] D3D10_TEXCUBE_ARRAY_SRV1 = Struct("D3D10_TEXCUBE_ARRAY_SRV1", [ @@ -99,14 +90,14 @@ D3D10_SHADER_RESOURCE_VIEW_DESC1 = Struct("D3D10_SHADER_RESOURCE_VIEW_DESC1", [ ID3D10ShaderResourceView1 = Interface("ID3D10ShaderResourceView1", ID3D10ShaderResourceView) ID3D10ShaderResourceView1.methods += [ - Method(Void, "GetDesc1", [Out(Pointer(D3D10_SHADER_RESOURCE_VIEW_DESC1), "pDesc")]), + StdMethod(Void, "GetDesc1", [Out(Pointer(D3D10_SHADER_RESOURCE_VIEW_DESC1), "pDesc")]), ] ID3D10Device1 = Interface("ID3D10Device1", ID3D10Device) ID3D10Device1.methods += [ - Method(HRESULT, "CreateShaderResourceView1", [(ObjPointer(ID3D10Resource), "pResource"), Out(Pointer(Const(D3D10_SHADER_RESOURCE_VIEW_DESC1)), "pDesc"), Out(Pointer(ObjPointer(ID3D10ShaderResourceView1)), "ppSRView")]), - Method(HRESULT, "CreateBlendState1", [(Pointer(Const(D3D10_BLEND_DESC1)), "pBlendStateDesc"), Out(Pointer(ObjPointer(ID3D10BlendState1)), "ppBlendState")]), - Method(D3D10_FEATURE_LEVEL1, "GetFeatureLevel", []), + StdMethod(HRESULT, "CreateShaderResourceView1", [(ObjPointer(ID3D10Resource), "pResource"), Out(Pointer(Const(D3D10_SHADER_RESOURCE_VIEW_DESC1)), "pDesc"), Out(Pointer(ObjPointer(ID3D10ShaderResourceView1)), "ppSRView")]), + StdMethod(HRESULT, "CreateBlendState1", [(Pointer(Const(D3D10_BLEND_DESC1)), "pBlendStateDesc"), Out(Pointer(ObjPointer(ID3D10BlendState1)), "ppBlendState")]), + StdMethod(D3D10_FEATURE_LEVEL1, "GetFeatureLevel", []), ] d3d10_1 = API("d3d10_1")