From 6c237a91f610001741a4c11051a455b952e3c6f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Tue, 15 Aug 2017 12:24:44 +0200 Subject: [PATCH] include: Add IDXGIFactory4. --- include/dxgi1_3.idl | 11 +++++++++++ include/dxgi1_4.idl | 12 ++++++++++++ 2 files changed, 23 insertions(+) diff --git a/include/dxgi1_3.idl b/include/dxgi1_3.idl index 85fcc0cb..83f4c977 100644 --- a/include/dxgi1_3.idl +++ b/include/dxgi1_3.idl @@ -37,3 +37,14 @@ interface IDXGISwapChain2 : IDXGISwapChain1 HRESULT SetMatrixTransform(const DXGI_MATRIX_3X2_F *matrix); HRESULT GetMatrixTransform(DXGI_MATRIX_3X2_F *matrix); }; + +[ + local, + object, + uuid(25483823-cd46-4c7d-86ca-47aa95b837bd), + pointer_default(unique) +] +interface IDXGIFactory3 : IDXGIFactory2 +{ + UINT GetCreationFlags(); +}; diff --git a/include/dxgi1_4.idl b/include/dxgi1_4.idl index c3b0bf7b..03acc3ed 100644 --- a/include/dxgi1_4.idl +++ b/include/dxgi1_4.idl @@ -33,3 +33,15 @@ interface IDXGISwapChain3 : IDXGISwapChain2 HRESULT ResizeBuffers1(UINT buffer_count, UINT width, UINT height, DXGI_FORMAT format, UINT flags, const UINT *node_mask, IUnknown *const *present_queue); }; + +[ + local, + object, + uuid(1bc6ea02-ef36-464f-bf0c-21ca39e5168a), + pointer_default(unique), +] +interface IDXGIFactory4 : IDXGIFactory3 +{ + HRESULT EnumAdapterByLuid(LUID luid, REFIID iid, void **adapter); + HRESULT EnumWarpAdapter(REFIID iid, void **adapter); +};