X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fd3d10misc.py;h=08795b3aecee993f1e5839070f8d3839b8e19cca;hb=940cdb8b143455fe2fc002ffd50f5e2ffcaf1260;hp=0a04f8645bc10185befb7cf76021354f83b00384;hpb=f17f4646765f2ee96582e76a1800b826926c18dc;p=apitrace diff --git a/specs/d3d10misc.py b/specs/d3d10misc.py index 0a04f86..08795b3 100644 --- a/specs/d3d10misc.py +++ b/specs/d3d10misc.py @@ -26,18 +26,9 @@ """d3d10misc.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", @@ -47,18 +38,18 @@ D3D10_DRIVER_TYPE = Enum("D3D10_DRIVER_TYPE", [ ]) -d3d10 = API("d3d10") - d3d10.addFunctions([ StdFunction(HRESULT, "D3D10CreateDevice", [(ObjPointer(IDXGIAdapter), "pAdapter"), (D3D10_DRIVER_TYPE, "DriverType"), (HMODULE, "Software"), (D3D10_CREATE_DEVICE_FLAG, "Flags"), (UINT, "SDKVersion"), Out(Pointer(ObjPointer(ID3D10Device)), "ppDevice")]), StdFunction(HRESULT, "D3D10CreateDeviceAndSwapChain", [(ObjPointer(IDXGIAdapter), "pAdapter"), (D3D10_DRIVER_TYPE, "DriverType"), (HMODULE, "Software"), (D3D10_CREATE_DEVICE_FLAG, "Flags"), (UINT, "SDKVersion"), (Pointer(DXGI_SWAP_CHAIN_DESC), "pSwapChainDesc"), Out(Pointer(ObjPointer(IDXGISwapChain)), "ppSwapChain"), Out(Pointer(ObjPointer(ID3D10Device)), "ppDevice")]), - StdFunction(HRESULT, "D3D10CreateBlob", [(SIZE_T, "NumBytes"), Out(Pointer(LPD3D10BLOB), "ppBuffer")]), ]) d3d10.addInterfaces([ + IDXGIAdapter1, IDXGIDevice1, + IDXGIResource, ID3D10Debug, ID3D10InfoQueue, ID3D10Multithread, ID3D10SwitchToRef, ]) +