include: Add IDXGIFactory6.

Signed-off-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Philip Rebohle 2020-05-13 19:16:54 +04:30 committed by Alexandre Julliard
parent 3d05e4da7d
commit 1a9830ade4
1 changed files with 23 additions and 0 deletions

View File

@ -34,6 +34,13 @@ typedef enum DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS
DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAG_CURSOR_STRETCHED = 0x4,
} DXGI_HARDWARE_COMPOSITION_SUPPORT_FLAGS;
typedef enum DXGI_GPU_PREFERENCE
{
DXGI_GPU_PREFERENCE_UNSPECIFIED = 0x0,
DXGI_GPU_PREFERENCE_MINIMUM_POWER = 0x1,
DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE = 0x2,
} DXGI_GPU_PREFERENCE;
typedef struct DXGI_ADAPTER_DESC3
{
WCHAR Description[128];
@ -96,3 +103,19 @@ interface IDXGIOutput6 : IDXGIOutput5
[out] UINT *flags
);
}
[
object,
uuid(c1b6694f-ff09-44a9-b03c-77900a0a1d17),
local,
pointer_default(unique)
]
interface IDXGIFactory6 : IDXGIFactory5
{
HRESULT EnumAdapterByGpuPreference(
[in] UINT adapter_idx,
[in] DXGI_GPU_PREFERENCE gpu_preference,
[in] REFIID iid,
[out] void **adapter
);
}