diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-08-14 16:01:03 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-08-14 16:01:03 +0100 |
commit | 974e88e248b97ed923886df44c628845d3cd962d (patch) | |
tree | 87800cfc3d02e595a0019dfd755aa30434b30661 /specs | |
parent | 6fc5f99a38660f33282e8c0426fe48ddba66f70e (diff) |
specs: Move undocumented DXGI interfaces to the bottom.
Diffstat (limited to 'specs')
-rw-r--r-- | specs/dxgi.py | 50 |
1 files changed, 29 insertions, 21 deletions
diff --git a/specs/dxgi.py b/specs/dxgi.py index b79e15cf..091ce746 100644 --- a/specs/dxgi.py +++ b/specs/dxgi.py @@ -524,31 +524,10 @@ IDXGIDevice1.methods += [ ] -IDXGIFactoryDWM = Interface("IDXGIFactoryDWM", IUnknown) -IDXGISwapChainDWM = Interface("IDXGISwapChainDWM", IDXGIDeviceSubObject) - -IDXGIFactoryDWM.methods += [ - StdMethod(HRESULT, "CreateSwapChain", [(ObjPointer(IUnknown), "pDevice"), (Pointer(DXGI_SWAP_CHAIN_DESC), "pDesc"), (ObjPointer(IDXGIOutput), "pOutput"), Out(Pointer(ObjPointer(IDXGISwapChainDWM)), "ppSwapChain")]), -] - -# http://shchetinin.blogspot.co.uk/2012/04/dwm-graphics-directx-win8win7.html -IDXGISwapChainDWM.methods += [ - StdMethod(HRESULT, "Present", [(UINT, "SyncInterval"), (DXGI_PRESENT, "Flags")]), - StdMethod(HRESULT, "GetBuffer", [(UINT, "Buffer"), (REFIID, "riid"), Out(Pointer(ObjPointer(Void)), "ppSurface")]), - StdMethod(HRESULT, "GetDesc", [Out(Pointer(DXGI_SWAP_CHAIN_DESC), "pDesc")], sideeffects=False), - StdMethod(HRESULT, "ResizeBuffers", [(UINT, "BufferCount"), (UINT, "Width"), (UINT, "Height"), (DXGI_FORMAT, "NewFormat"), (DXGI_SWAP_CHAIN_FLAG, "SwapChainFlags")]), - StdMethod(HRESULT, "ResizeTarget", [(Pointer(Const(DXGI_MODE_DESC)), "pNewTargetParameters")]), - StdMethod(HRESULT, "GetContainingOutput", [Out(Pointer(ObjPointer(IDXGIOutput)), "ppOutput")]), - StdMethod(HRESULT, "GetFrameStatistics", [Out(Pointer(DXGI_FRAME_STATISTICS), "pStats")], sideeffects=False), - StdMethod(HRESULT, "GetLastPresentCount", [Out(Pointer(UINT), "pLastPresentCount")], sideeffects=False), -] - - dxgi = Module('dxgi') dxgi.addInterfaces([ IDXGIKeyedMutex, IDXGIFactory1, - IDXGIFactoryDWM, IDXGIDevice1, IDXGIAdapter1, IDXGIResource, @@ -905,3 +884,32 @@ dxgi.addInterfaces([ IDXGIFactory3, IDXGIFactoryMedia, ]) + + + +# +# Undocumented interfaces +# + +IDXGIFactoryDWM = Interface("IDXGIFactoryDWM", IUnknown) +IDXGISwapChainDWM = Interface("IDXGISwapChainDWM", IDXGIDeviceSubObject) + +IDXGIFactoryDWM.methods += [ + StdMethod(HRESULT, "CreateSwapChain", [(ObjPointer(IUnknown), "pDevice"), (Pointer(DXGI_SWAP_CHAIN_DESC), "pDesc"), (ObjPointer(IDXGIOutput), "pOutput"), Out(Pointer(ObjPointer(IDXGISwapChainDWM)), "ppSwapChain")]), +] + +# http://shchetinin.blogspot.co.uk/2012/04/dwm-graphics-directx-win8win7.html +IDXGISwapChainDWM.methods += [ + StdMethod(HRESULT, "Present", [(UINT, "SyncInterval"), (DXGI_PRESENT, "Flags")]), + StdMethod(HRESULT, "GetBuffer", [(UINT, "Buffer"), (REFIID, "riid"), Out(Pointer(ObjPointer(Void)), "ppSurface")]), + StdMethod(HRESULT, "GetDesc", [Out(Pointer(DXGI_SWAP_CHAIN_DESC), "pDesc")], sideeffects=False), + StdMethod(HRESULT, "ResizeBuffers", [(UINT, "BufferCount"), (UINT, "Width"), (UINT, "Height"), (DXGI_FORMAT, "NewFormat"), (DXGI_SWAP_CHAIN_FLAG, "SwapChainFlags")]), + StdMethod(HRESULT, "ResizeTarget", [(Pointer(Const(DXGI_MODE_DESC)), "pNewTargetParameters")]), + StdMethod(HRESULT, "GetContainingOutput", [Out(Pointer(ObjPointer(IDXGIOutput)), "ppOutput")]), + StdMethod(HRESULT, "GetFrameStatistics", [Out(Pointer(DXGI_FRAME_STATISTICS), "pStats")], sideeffects=False), + StdMethod(HRESULT, "GetLastPresentCount", [Out(Pointer(UINT), "pLastPresentCount")], sideeffects=False), +] + +dxgi.addInterfaces([ + IDXGIFactoryDWM, +]) |